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 {