Skip to content

Commit

Permalink
fix(translate): fix get custom field value issue when value is 0 #WIK…
Browse files Browse the repository at this point in the history
…-17102 (#236)
  • Loading branch information
pubuzhixing8 authored Feb 6, 2025
1 parent 52067eb commit 2223888
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/state/src/shared/utils/translate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export const getValuesByCustomFieldValues = (customFieldValues: CustomFieldValue
const fieldIds = fields.map((item) => item._id);
const recordValue: Record<string, any> = {};
fieldIds.forEach((item, index) => {
recordValue[item] = customFieldValues[index] || '';
recordValue[item] = customFieldValues[index];
});
return recordValue;
};
Expand Down

0 comments on commit 2223888

Please sign in to comment.