Update exporter.js with fix for #5416

This should fix #5416
This commit is contained in:
Josef Fröhle 2024-05-28 16:42:44 +02:00 committed by GitHub
parent 6f31240c74
commit c2942fa269
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 {