diff options
author | Daniel Kesselberg <mail@danielkesselberg.de> | 2020-09-21 22:15:35 +0300 |
---|---|---|
committer | Daniel Kesselberg <mail@danielkesselberg.de> | 2020-09-21 22:22:03 +0300 |
commit | 88499666af360f1647c4d55f77dc4b018e856b44 (patch) | |
tree | b46ad369e4af7362cc94b1d246e5c9a279cc29e9 /src | |
parent | 9ea8181fe684be1e83c741037c796de7dc802c0d (diff) |
Check if error is ocs response on workspace request
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'src')
-rw-r--r-- | src/views/RichWorkspace.vue | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/views/RichWorkspace.vue b/src/views/RichWorkspace.vue index 9960ad6f6..961f3c8f4 100644 --- a/src/views/RichWorkspace.vue +++ b/src/views/RichWorkspace.vue @@ -137,8 +137,11 @@ export default { this.loaded = true return true }).catch((error) => { - const data = error.response.data.ocs.data - this.folder = data.folder || null + if (error.response.data.ocs && error.response.data.ocs.data.folder) { + this.folder = error.response.data.ocs.data.folder + } else { + this.folder = null + } this.file = null this.loaded = true this.ready = true |