]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Fix: custom field removal doesnt always trigger change detection (#6653)
authorshamoon <4887959+shamoon@users.noreply.github.com>
Thu, 9 May 2024 17:10:11 +0000 (10:10 -0700)
committerGitHub <noreply@github.com>
Thu, 9 May 2024 17:10:11 +0000 (17:10 +0000)
src-ui/src/app/components/document-detail/document-detail.component.ts

index 5e3b6c2a73e77fe33e839c0d42438c38add6a5b6..c530921c7787b55e3fbd36b8867117594c1ef31e 100644 (file)
@@ -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(