Merge pull request #5424 from Dexus/patch-1

Update exporter.js with fix for #5416
pull/5430/head
Lauri Ojansivu 1 year ago committed by GitHub
commit e0e5f4514b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 5
      models/exporter.js

@ -348,9 +348,10 @@ export class Exporter {
const dropdownOptions = result.customFields.find(
({ _id }) => _id === field._id,
).settings.dropdownItems;
const fieldValue = dropdownOptions.find(
const fieldObj = dropdownOptions.find(
({ _id }) => _id === field.value,
).name;
);
const fieldValue = (fieldObj && fieldObj.name) || null;
customFieldValuesToPush[customFieldMap[field._id].position] =
fieldValue;
} else {

Loading…
Cancel
Save