From 8b29d23dbbae73723f808c779b9b25696bc44afb Mon Sep 17 00:00:00 2001 From: Oleksii Orel Date: Wed, 25 Oct 2023 15:11:52 +0300 Subject: [PATCH] fix: namespace provision Signed-off-by: Oleksii Orel --- packages/dashboard-frontend/src/store/SanityCheck/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/dashboard-frontend/src/store/SanityCheck/index.ts b/packages/dashboard-frontend/src/store/SanityCheck/index.ts index a3996ed81..83fe548a0 100644 --- a/packages/dashboard-frontend/src/store/SanityCheck/index.ts +++ b/packages/dashboard-frontend/src/store/SanityCheck/index.ts @@ -16,6 +16,7 @@ import { Action, Reducer } from 'redux'; import { provisionKubernetesNamespace } from '@/services/backend-client/kubernetesNamespaceApi'; import { getDefer } from '@/services/helpers/deferred'; import { delay } from '@/services/helpers/delay'; +import { signIn } from '@/services/helpers/login'; import { getErrorMessage, hasLoginPage, @@ -114,7 +115,7 @@ export const actionCreators: ActionCreators = { } } catch (e) { if (isUnauthorized(e) || (isForbidden(e) && hasLoginPage(e))) { - window.location.reload(); + signIn(); } const errorMessage = getErrorMessage(e); dispatch({