mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-08 15:55:31 +01:00
Fix: fix potential race condition when creating new custom fields on doc details (#9542)
This commit is contained in:
parent
3526a4cf23
commit
2e593a0022
2 changed files with 19 additions and 21 deletions
|
|
@ -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 }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue