mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 07:20:12 +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(
|
||||
({ _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…
Add table
Add a link
Reference in a new issue