diff options
author | Stefan Malzner <stefan@adlk.io> | 2019-06-13 13:22:27 +0200 |
---|---|---|
committer | Stefan Malzner <stefan@adlk.io> | 2019-06-13 13:22:27 +0200 |
commit | f65677735b02326870ada2100b55222fa69a401d (patch) | |
tree | 53adfc38c0a493e5e8fef3211d0e82b7d164d9ff /src/stores/GlobalErrorStore.js | |
parent | Enforce service limit (diff) | |
parent | Merge branch 'release/5.2.0-beta.2' (diff) | |
download | ferdium-app-f65677735b02326870ada2100b55222fa69a401d.tar.gz ferdium-app-f65677735b02326870ada2100b55222fa69a401d.tar.zst ferdium-app-f65677735b02326870ada2100b55222fa69a401d.zip |
Merge branch 'develop' into feature/service-limit
Diffstat (limited to 'src/stores/GlobalErrorStore.js')
-rw-r--r-- | src/stores/GlobalErrorStore.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/stores/GlobalErrorStore.js b/src/stores/GlobalErrorStore.js index 90bf751c3..7a85c2daa 100644 --- a/src/stores/GlobalErrorStore.js +++ b/src/stores/GlobalErrorStore.js | |||
@@ -18,8 +18,11 @@ export default class GlobalErrorStore extends Store { | |||
18 | this.error = request.error; | 18 | this.error = request.error; |
19 | 19 | ||
20 | if (request.error.json) { | 20 | if (request.error.json) { |
21 | this.response = await request.error.json(); | 21 | try { |
22 | 22 | this.response = await request.error.json(); | |
23 | } catch (error) { | ||
24 | this.response = {}; | ||
25 | } | ||
23 | if (this.error.status === 401) { | 26 | if (this.error.status === 401) { |
24 | this.actions.user.logout({ serverLogout: true }); | 27 | this.actions.user.logout({ serverLogout: true }); |
25 | } | 28 | } |