diff --git a/src/app/app.component.ts b/src/app/app.component.ts index c9f27de..82a80f8 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -157,7 +157,9 @@ export class AppComponent implements OnInit, OnChanges, OnDestroy { } ngOnInit(): void { - this.preLoad.load(); + if (this.user !== null) { + this.preLoad.load(); + } this.subscription = this.api.loadingState.subscribe( state => this.loading = state.show );