From e0418c792dc22c757617296bb898d81884d4289b Mon Sep 17 00:00:00 2001 From: Nicoleta Panaghiu Date: Mon, 9 Dec 2024 10:52:47 +0200 Subject: [PATCH] RED-10512: added allow signal writes back. --- .../file-attribute/file-attribute.component.ts | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/apps/red-ui/src/app/modules/dossier-overview/components/file-attribute/file-attribute.component.ts b/apps/red-ui/src/app/modules/dossier-overview/components/file-attribute/file-attribute.component.ts index 505678b3c..56ead3ac3 100644 --- a/apps/red-ui/src/app/modules/dossier-overview/components/file-attribute/file-attribute.component.ts +++ b/apps/red-ui/src/app/modules/dossier-overview/components/file-attribute/file-attribute.component.ts @@ -90,11 +90,14 @@ export class FileAttributeComponent extends BaseFormComponent implements OnDestr ); this.#subscriptions.add(sub2.subscribe()); - effect(() => { - if (this.#shouldClose()) { - this.close(); - } - }); + effect( + () => { + if (this.#shouldClose()) { + this.close(); + } + }, + { allowSignalWrites: true }, + ); } get isDate(): boolean {