From d4160074e5ce770bcaaa887b19163735e7d5ea7b Mon Sep 17 00:00:00 2001 From: Nicoleta Panaghiu Date: Fri, 13 Oct 2023 13:16:56 +0300 Subject: [PATCH] RED-7754: Fixed navigation after closing edit. --- .../components/file-attribute/file-attribute.component.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 589b6be2d..079dd6b1a 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 @@ -123,7 +123,11 @@ export class FileAttributeComponent extends BaseFormComponent implements OnDestr } async editFileAttribute($event: MouseEvent): Promise { - if (!this.file.isInitialProcessing && this.permissionsService.canEditFileAttributes(this.file, this.dossier)) { + if ( + !this.file.isInitialProcessing && + this.permissionsService.canEditFileAttributes(this.file, this.dossier) && + !this.isInEditMode + ) { $event.stopPropagation(); this.fileAttributesService.openAttributeEdits.mutate(value => value.push({ attribute: this.fileAttribute.id, file: this.file.id }),