Update exporter.js with fix for #5416

This should fix #5416
pull/5424/head
Josef Fröhle 12 months ago committed by GitHub
parent 6f31240c74
commit c2942fa269
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