From 33ab69e010a2cace520826f12cbd0e80a7bc0832 Mon Sep 17 00:00:00 2001 From: Michael Shamoon <4887959+shamoon@users.noreply.github.com> Date: Sat, 5 Mar 2022 19:42:49 -0800 Subject: [PATCH] Clone tags array to prevent false dirty check Closes #215 --- .../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 85b221307..22c63ccc4 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 @@ -146,7 +146,7 @@ export class DocumentDetailComponent implements OnInit, OnDestroy, DirtyComponen correspondent: doc.correspondent, document_type: doc.document_type, archive_serial_number: doc.archive_serial_number, - tags: doc.tags + tags: [...doc.tags] }) this.isDirty$ = dirtyCheck(this.documentForm, this.store.asObservable())