From e0a96b8fb2e1cf030f8674be4bdb82c59c3c9f65 Mon Sep 17 00:00:00 2001 From: Vladyslav_Prykhodko Date: Wed, 18 Sep 2024 18:05:48 +0300 Subject: [PATCH] UI: Fixed race conditional when show login error dialog --- ui-ngx/src/app/core/auth/auth.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui-ngx/src/app/core/auth/auth.service.ts b/ui-ngx/src/app/core/auth/auth.service.ts index 5f8a968710..8e749c95c1 100644 --- a/ui-ngx/src/app/core/auth/auth.service.ts +++ b/ui-ngx/src/app/core/auth/auth.service.ts @@ -350,7 +350,7 @@ export class AuthService { ) ); } else if (loginError) { - this.showLoginErrorDialog(loginError); + Promise.resolve().then(() => this.showLoginErrorDialog(loginError)); this.utils.updateQueryParam('loginError', null); return throwError(Error()); }