mirror of
https://github.com/bitwarden/web
synced 2025-12-10 21:33:16 +00:00
Instantiate all status map arrays on load (#1107)
* Instantiate all status map arrays on load * Update jslib * Linter fixes
This commit is contained in:
@@ -106,6 +106,10 @@ export abstract class BasePeopleComponent<UserType extends ProviderUserUserDetai
|
||||
async load() {
|
||||
const response = await this.getUsers();
|
||||
this.statusMap.clear();
|
||||
for (const status of Utils.iterateEnum(this.userStatusType)) {
|
||||
this.statusMap.set(status, []);
|
||||
}
|
||||
|
||||
this.allUsers = response.data != null && response.data.length > 0 ? response.data : [];
|
||||
this.allUsers.sort(Utils.getSortFunction(this.i18nService, 'email'));
|
||||
this.allUsers.forEach(u => {
|
||||
@@ -311,4 +315,4 @@ export abstract class BasePeopleComponent<UserType extends ProviderUserUserDetai
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user