diff options
Diffstat (limited to 'src/views/RichWorkspace.vue')
-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 cb142332e..9d16680af 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 |