fix: error response has undefined issue (#2092)
This commit is contained in:
parent
c4ae901591
commit
2bb2d4aa25
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ export const actions = {
|
|||
setUser(response.data.payload.data, getHeaderExpiry(response));
|
||||
context.commit(types.default.SET_CURRENT_USER);
|
||||
} catch (error) {
|
||||
if (error.response.status === 401) {
|
||||
if (error?.response?.status === 401) {
|
||||
clearCookiesOnLogout();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue