Wait for item types to be loaded
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good

This commit is contained in:
Willem Dantuma 2020-12-08 16:14:58 +01:00
parent f2cb5d4d64
commit 6dccaa8ce5

View File

@ -101,6 +101,10 @@ export class AppComponent implements OnInit, OnDestroy {
return action; return action;
} }
async loadItemTypes() {
await this.itemTypeService$.load(this.appConfig$)
}
ngOnInit() { ngOnInit() {
this.InstallRouteEventHandler(); this.InstallRouteEventHandler();
this.InstallEventServiceEventHandler(); this.InstallEventServiceEventHandler();
@ -108,7 +112,7 @@ export class AppComponent implements OnInit, OnDestroy {
this.InstallHealthCheck(); this.InstallHealthCheck();
//load item types //load item types
this.itemTypeService$.load(this.appConfig$) this.loadItemTypes();
} }
@HostListener('document:keyup', ['$event']) @HostListener('document:keyup', ['$event'])