From a718036ab6baa92d9aa469a9997b3c73e6d9bb1d Mon Sep 17 00:00:00 2001 From: samnyan <4137880+samnyan@users.noreply.github.com> Date: Fri, 24 Jul 2020 22:56:29 +0900 Subject: [PATCH] [general] Only load database after login. --- src/app/app.component.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 );