From e2b5829cef9d33cf16680aceb36f380ea2a261c0 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Thu, 9 May 2024 07:29:22 -0700 Subject: [PATCH] Fix: custom field removal doesnt always trigger change detection --- .../app/components/document-detail/document-detail.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src-ui/src/app/components/document-detail/document-detail.component.ts b/src-ui/src/app/components/document-detail/document-detail.component.ts index 5e3b6c2a7..c530921c7 100644 --- a/src-ui/src/app/components/document-detail/document-detail.component.ts +++ b/src-ui/src/app/components/document-detail/document-detail.component.ts @@ -417,7 +417,7 @@ export class DocumentDetailComponent owner: doc.owner, set_permissions: doc.permissions, }, - custom_fields: doc.custom_fields, + custom_fields: [...doc.custom_fields], }) this.isDirty$ = dirtyCheck(