Skip to content

Commit

Permalink
fix: namespace provision (#961)
Browse files Browse the repository at this point in the history
Signed-off-by: Oleksii Orel <[email protected]>
  • Loading branch information
olexii4 authored Oct 25, 2023
1 parent ead3ee1 commit 07e4e42
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/dashboard-frontend/src/store/SanityCheck/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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({
Expand Down

0 comments on commit 07e4e42

Please sign in to comment.