fix preselect user check (#5420)

This commit is contained in:
Eugenio Romano
2020-01-29 19:59:29 +00:00
committed by GitHub
parent 2434d9a09c
commit 5d28a162c2
2 changed files with 2 additions and 2 deletions

View File

@@ -470,7 +470,7 @@ export class PeopleCloudComponent implements OnInit, OnChanges, OnDestroy {
}
private hasPreselectedUsersCleared(changes): boolean {
return changes && changes.preSelectUsers && changes.preSelectUsers.currentValue.length === 0;
return changes && changes.preSelectUsers && changes.preSelectUsers.currentValue && changes.preSelectUsers.currentValue.length === 0;
}
private resetSearchUsers() {