From 85e85aa2bbc4b2b36ab0fbe225e0dd626f85320f Mon Sep 17 00:00:00 2001 From: kolaente Date: Sun, 31 Oct 2021 13:10:29 +0100 Subject: [PATCH] fix: don't crash when an error does not contain a request --- src/store/modules/auth.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store/modules/auth.js b/src/store/modules/auth.js index 19d4ba11..617c85e6 100644 --- a/src/store/modules/auth.js +++ b/src/store/modules/auth.js @@ -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') } }