Wait for item types to be loaded
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good Details

2022.01
Willem Dantuma 2020-12-08 16:14:58 +01:00
parent f2cb5d4d64
commit 6dccaa8ce5
1 changed files with 5 additions and 1 deletions

View File

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