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 6b7e82b2a..c853cafb8 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 @@ -26,14 +26,14 @@ export class FileAttributeComponent extends BaseFormComponent implements OnDestr closedDatepicker = true; readonly #subscriptions = new Subscription(); readonly shouldClose$ = this.fileAttributesService.isEditingFileAttribute$.pipe( - filter(value => value === true), tap(value => { if ( - value && - !!this.file && - !!this.fileAttribute && - (this.fileAttribute.id !== this.fileAttributesService.openAttributeEdit$.value || - this.file.fileId !== this.fileAttributesService.fileEdit$.value) + (value && + !!this.file && + !!this.fileAttribute && + (this.fileAttribute.id !== this.fileAttributesService.openAttributeEdit$.value || + this.file.fileId !== this.fileAttributesService.fileEdit$.value)) || + !this.fileAttributesService.openAttributeEdits$.value.length ) { this.close(); } diff --git a/apps/red-ui/src/app/modules/dossier-overview/components/workflow-item/workflow-item.component.html b/apps/red-ui/src/app/modules/dossier-overview/components/workflow-item/workflow-item.component.html index 3b37ea586..e2afae74b 100644 --- a/apps/red-ui/src/app/modules/dossier-overview/components/workflow-item/workflow-item.component.html +++ b/apps/red-ui/src/app/modules/dossier-overview/components/workflow-item/workflow-item.component.html @@ -1,4 +1,4 @@ -