Fixed loading scheduled events
This commit is contained in:
parent
baf7b8d7de
commit
acfa359eeb
@ -93,11 +93,11 @@ export class ScheduledEventsComponent extends ComponentWithTable implements OnIn
|
|||||||
|
|
||||||
public ngOnInit(): void {
|
public ngOnInit(): void {
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
this.setFilterForm();
|
|
||||||
this.data.getServerFromRoute(this.route).then(async server => {
|
this.data.getServerFromRoute(this.route).then(async server => {
|
||||||
this.server = server;
|
this.server = server;
|
||||||
let authUser = await this.authService.getLoggedInUser();
|
let authUser = await this.authService.getLoggedInUser();
|
||||||
this.user = authUser?.users?.find(u => u.server == this.server.id) ?? null;
|
this.user = authUser?.users?.find(u => u.server == this.server.id) ?? null;
|
||||||
|
this.setFilterForm();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user