.subscribe({
next: (r) => {
this.users = r.results
+ this.initialize(false)
},
error: (e) => {
this.toastService.showError($localize`Error retrieving users`, e)
}
}
- if (this.users && this.groups) {
+ if (this.users) {
this.emptyGroup(this.usersGroup)
- this.emptyGroup(this.groupsGroup)
for (let user of this.users) {
storeData.usersGroup[user.id.toString()] = {
})
)
}
-
+ }
+ if (this.groups) {
+ this.emptyGroup(this.groupsGroup)
for (let group of this.groups) {
storeData.groupsGroup[group.id.toString()] = {
id: group.id,