Fixed loading scheduled events

This commit is contained in:
Sven Heidemann 2024-01-25 16:44:41 +01:00
parent baf7b8d7de
commit acfa359eeb

View File

@ -93,11 +93,11 @@ export class ScheduledEventsComponent extends ComponentWithTable implements OnIn
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();
});
}