From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Thu, 9 May 2024 17:10:11 +0000 (-0700) Subject: Fix: custom field removal doesnt always trigger change detection (#6653) X-Git-Tag: v2.8.3~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9b3a29cddde58b25b3fa4c5924466da393797e0b;p=thirdparty%2Fpaperless-ngx.git Fix: custom field removal doesnt always trigger change detection (#6653) --- 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 5e3b6c2a73..c530921c77 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(