summaryrefslogtreecommitdiffstats
path: root/webapp/src/main.js
diff options
context:
space:
mode:
authorUdo Walter2019-01-15 13:35:55 +0100
committerUdo Walter2019-01-15 13:35:55 +0100
commit80dec98d05f76b8b724a2b7d21a2a8c0a9ddb127 (patch)
treed3468b3db9dee2641cc1381a39530df2d31461a7 /webapp/src/main.js
parentmerge (diff)
downloadbas-80dec98d05f76b8b724a2b7d21a2a8c0a9ddb127.tar.gz
bas-80dec98d05f76b8b724a2b7d21a2a8c0a9ddb127.tar.xz
bas-80dec98d05f76b8b724a2b7d21a2a8c0a9ddb127.zip
[webapp] small bugfixes
Diffstat (limited to 'webapp/src/main.js')
-rw-r--r--webapp/src/main.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/webapp/src/main.js b/webapp/src/main.js
index 69af37c..53064ca 100644
--- a/webapp/src/main.js
+++ b/webapp/src/main.js
@@ -59,7 +59,7 @@ Vue.use(VueCodemirror, {
Vue.use(VueTouch)
axios.interceptors.response.use(null, error => {
- if (error.response.data.status === 'TOKEN_INVALID' || error.response.data.status === 'TOKEN_MISSING') {
+ if (error && (error.response.data.status === 'TOKEN_INVALID' || error.response.data.status === 'TOKEN_MISSING')) {
axios.post('/api/logout').then(response => { router.push('/login') })
}
return Promise.reject(error)