mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 15:30:13 +01:00
Merge pull request #5424 from Dexus/patch-1
Update exporter.js with fix for #5416
This commit is contained in:
commit
e0e5f4514b
1 changed files with 3 additions and 2 deletions
|
|
@ -348,9 +348,10 @@ export class Exporter {
|
||||||
const dropdownOptions = result.customFields.find(
|
const dropdownOptions = result.customFields.find(
|
||||||
({ _id }) => _id === field._id,
|
({ _id }) => _id === field._id,
|
||||||
).settings.dropdownItems;
|
).settings.dropdownItems;
|
||||||
const fieldValue = dropdownOptions.find(
|
const fieldObj = dropdownOptions.find(
|
||||||
({ _id }) => _id === field.value,
|
({ _id }) => _id === field.value,
|
||||||
).name;
|
);
|
||||||
|
const fieldValue = (fieldObj && fieldObj.name) || null;
|
||||||
customFieldValuesToPush[customFieldMap[field._id].position] =
|
customFieldValuesToPush[customFieldMap[field._id].position] =
|
||||||
fieldValue;
|
fieldValue;
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue