From 5fb6034a86f473b7b304b53a18e5426e8dc24752 Mon Sep 17 00:00:00 2001 From: Diana Barsan <35681649+dianabarsan@users.noreply.github.com> Date: Thu, 17 Aug 2023 06:28:43 +0300 Subject: [PATCH] fix(#8463): don't wait for all initialization tasks to load the page #8463 --- webapp/src/ts/app.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/src/ts/app.component.ts b/webapp/src/ts/app.component.ts index 95ac7ee990f..e067f3f0be2 100644 --- a/webapp/src/ts/app.component.ts +++ b/webapp/src/ts/app.component.ts @@ -274,13 +274,13 @@ export class AppComponent implements OnInit, AfterViewInit { this.setupPromise = Promise.resolve() .then(() => this.chtScriptApiService.isInitialized()) .then(() => this.checkPrivacyPolicy()) + .then(() => (this.initialisationComplete = true)) .then(() => this.initRulesEngine()) .then(() => this.initTransitions()) .then(() => this.initForms()) .then(() => this.initUnreadCount()) .then(() => this.checkDateService.check(true)) .then(() => this.startRecurringProcesses()) - .then(() => this.initialisationComplete = true) .catch(err => { this.initialisationComplete = true; console.error('Error during initialisation', err);