RED-6176: Fixed save button disabled.

This commit is contained in:
Nicoleta Panaghiu 2023-03-30 11:58:34 +03:00
parent f3c8541fa1
commit 7784d0bdfc
2 changed files with 1 additions and 2 deletions

View File

@ -26,7 +26,7 @@
(save)="assignReviewer(file, $event)"
*ngIf="editingReviewer"
[options]="usersOptions$ | async"
[value]="file.assignee === null ? undefined : file.assignee"
[value]="file.assignee"
></redaction-assign-user-dropdown>
<div *ngIf="!editingReviewer && canAssign$ | async" class="assign-actions-wrapper">

View File

@ -91,7 +91,6 @@ export class UserManagementComponent {
this.usersOptions$ = combineLatest([this._canUnassignUser$, this.stateService.file$, this._dossier$]).pipe(
map(([canUnassignUser, file, dossier]) => {
const unassignUser = canUnassignUser && file.assignee ? [undefined] : [];
console.log(unassignUser);
return file.isUnderApproval
? this.#customSort([...dossier.approverIds, ...unassignUser])
: this.#customSort([...dossier.memberIds, ...unassignUser]);