Fix: fixes for workflow assign custom field values (#13630)

This commit is contained in:
shamoon
2026-08-10 07:38:07 -07:00
committed by GitHub
parent 62089df2d8
commit 855669ddf9
7 changed files with 75 additions and 7 deletions
@@ -77,7 +77,7 @@ export class CustomFieldsValuesComponent extends AbstractInputComponent<Object>
this._selectedFields = newFields
// map the selected fields to an object with field_id as key and value as value
this.value = newFields.reduce((acc, fieldId) => {
acc[fieldId] = this.value?.[fieldId] || null
acc[fieldId] = this.value?.[fieldId] ?? null
return acc
}, {})
this.onChange(this.value)