Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1720 from open-apparel-registry/tw/fix-embedded-d…
Browse files Browse the repository at this point in the history
…ownload

Fix CSV download when Extended Profile switch is off
  • Loading branch information
TaiWilkin authored Mar 17, 2022
2 parents 2504794 + 36c818c commit 688090c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
### Fixed

- Hide inactive contributor associations [#1712](https://github.com/open-apparel-registry/open-apparel-registry/pull/1712)
- Fix CSV download when extended profile switch is off [#1720](https://github.com/open-apparel-registry/open-apparel-registry/pull/1720)

### Security

Expand Down
2 changes: 1 addition & 1 deletion src/app/src/util/util.facilitiesCSV.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ export const makeFacilityReducer = options => (acc, next) =>

const getContributorFieldHeaders = (facilities, options) => {
let fields = get(facilities, '[0].properties.contributor_fields', []);
if (options && options.isEmbedded) {
if (options && options.includeExtendedFields) {
fields = fields.filter(
field => !extendedFieldHeaders.includes(field.fieldName),
);
Expand Down

0 comments on commit 688090c

Please sign in to comment.