Fix: fix potential race condition when creating new custom fields on doc details (#9542)

This commit is contained in:
shamoon authored and GitHub committed 2025-04-02 10:00:25 -07:00
1 parent 3526a4cf23
commit 2e593a0022
2 files changed
+19 -21

No files matched your search

@@ -1286,9 +1286,7 @@ export class DocumentDetailComponent
this.document.custom_fields?.forEach((fieldInstance) => {
this.customFieldFormFields.push(
new FormGroup({
field: new FormControl(
this.getCustomFieldFromInstance(fieldInstance)?.id
),
field: new FormControl(fieldInstance.field),
value: new FormControl(fieldInstance.value),
}),
{ emitEvent }