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
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

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