This commit is contained in:
Adina Țeudan 2021-10-19 23:23:07 +03:00
parent 476f6090e4
commit a2de1fd392

View File

@ -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) {