fix: don't crash when an error does not contain a request
This commit is contained in:
parent
54c5cabf48
commit
85e85aa2bb
1 changed files with 1 additions and 1 deletions
|
@ -246,7 +246,7 @@ export default {
|
|||
} catch(e) {
|
||||
// Don't logout on network errors as the user would then get logged out if they don't have
|
||||
// internet for a short period of time - such as when the laptop is still reconnecting
|
||||
if (e.request.status) {
|
||||
if (e?.request?.status) {
|
||||
ctx.dispatch('logout')
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue