Fixed user warnings
All checks were successful
Deploy prod on push / pre-build (push) Successful in 1s
Deploy prod on push / build-bot (push) Successful in 3m1s
Deploy prod on push / build-web (push) Successful in 1m47s
Deploy prod on push / deploy (push) Successful in 21s

This commit is contained in:
2024-01-26 17:02:52 +01:00
parent dfee6b0568
commit fbdac4f57a
2 changed files with 11 additions and 1 deletions

View File

@@ -79,11 +79,11 @@ export class UserWarningComponent extends ComponentWithTable implements OnInit,
public ngOnInit(): void {
this.loading = true;
this.setFilterForm();
this.data.getServerFromRoute(this.route).then(async server => {
this.server = server;
let authUser = await this.authService.getLoggedInUser();
this.user = authUser?.users?.find(u => u.server == this.server.id) ?? null;
this.setFilterForm();
});
}