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()); }