diff --git a/apps/red-ui/src/app/modules/dossier/shared/services/file-action.service.ts b/apps/red-ui/src/app/modules/dossier/shared/services/file-action.service.ts index a6bba5155..858bb2fe5 100644 --- a/apps/red-ui/src/app/modules/dossier/shared/services/file-action.service.ts +++ b/apps/red-ui/src/app/modules/dossier/shared/services/file-action.service.ts @@ -94,8 +94,8 @@ export class FileActionService { ignoreChanged = false, ) { const userIds = this._getUserIds(mode); - if (userIds.length === 1 || (userIds.includes(this._userService.currentUser.id) && mode === 'approver')) { - $event.stopPropagation(); + if (userIds.length === 1 || userIds.includes(this._userService.currentUser.id)) { + $event?.stopPropagation(); // event$ is null when called from workflow view const userId = userIds.length === 1 ? userIds[0] : this._userService.currentUser.id; this._assignFile(userId, mode, [file]).then(async () => { if (callback) {