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 a51b3eebb..9ebabc405 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 @@ -87,7 +87,11 @@ export class FileAttributeComponent extends BaseFormComponent implements OnDestr } editFileAttribute($event: MouseEvent) { - 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.#toggleEdit(); this.fileAttributesService.setFileEdit(this.file.fileId);