lint, fix users groups load fail

This commit is contained in:
shamoon 2023-09-28 23:44:15 -07:00
parent 0f4aebcac5
commit f4c1d7b4a2
2 changed files with 4 additions and 1 deletions

View File

@ -53,6 +53,7 @@ export class UsersAndGroupsComponent
this.users = r.results
},
error: (e) => {
this.users = []
this.toastService.showError($localize`Error retrieving users`, e)
},
})
@ -65,6 +66,7 @@ export class UsersAndGroupsComponent
this.groups = r.results
},
error: (e) => {
this.groups = []
this.toastService.showError($localize`Error retrieving groups`, e)
},
})
@ -77,6 +79,7 @@ export class UsersAndGroupsComponent
this.ssoGroups = r.results
},
error: (e) => {
this.ssoGroups = []
this.toastService.showError($localize`Error retrieving SSO groups`, e)
},
})

View File

@ -11,7 +11,7 @@ import { SsoGroupService } from '../../../../services/rest/sso-group.service'
import { first } from 'rxjs'
@Component({
selector: 'app-sso-group-edit-dialog',
selector: 'pngx-sso-group-edit-dialog',
templateUrl: './sso-group-edit-dialog.component.html',
styleUrls: ['./sso-group-edit-dialog.component.scss'],
})