mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
fix preselect user check (#5420)
This commit is contained in:
@@ -96,7 +96,7 @@ describe('DropdownSitesComponent', () => {
|
|||||||
fixture.detectChanges();
|
fixture.detectChanges();
|
||||||
fixture.whenStable().then(() => {
|
fixture.whenStable().then(() => {
|
||||||
fixture.detectChanges();
|
fixture.detectChanges();
|
||||||
expect(element.querySelector('[data-automation-id="lsite-loading"]')).toBeDefined();
|
expect(element.querySelector('[data-automation-id="site-loading"]')).toBeDefined();
|
||||||
});
|
});
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
@@ -470,7 +470,7 @@ export class PeopleCloudComponent implements OnInit, OnChanges, OnDestroy {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private hasPreselectedUsersCleared(changes): boolean {
|
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() {
|
private resetSearchUsers() {
|
||||||
|
Reference in New Issue
Block a user