Skip to content

Commit

Permalink
fix: namespace provision
Browse files Browse the repository at this point in the history
Signed-off-by: Oleksii Orel <[email protected]>
  • Loading branch information
olexii4 committed Oct 25, 2023
1 parent dba9806 commit 1b7aed1
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 @@ -25,6 +25,7 @@ import {
import { createObject } from '@/store/helpers';

import { AppThunk } from '..';
import { signIn } from '@/services/helpers/login';

const secToStale = 5;
const timeToStale = secToStale * 1000;
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 1b7aed1

Please sign in to comment.