fix: don't crash when an error does not contain a request

This commit is contained in:
kolaente 2021-10-31 13:10:29 +01:00
parent 54c5cabf48
commit 85e85aa2bb
Signed by untrusted user: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 1 additions and 1 deletions

View File

@ -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')
}
}