aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/src
diff options
context:
space:
mode:
authorskjnldsv <skjnldsv@protonmail.com>2024-08-07 16:05:14 +0200
committerskjnldsv <skjnldsv@protonmail.com>2024-08-07 16:06:25 +0200
commitb96800ecc5da7b25d5039a12b8f34494ce7ce0f7 (patch)
tree011ca02bb2ef2049464a8b4c610a1952f2368c17 /apps/files_sharing/src
parent800a1b8f12a2e68d5a2a5a76bd1ec19f480e5c6b (diff)
downloadnextcloud-server-b96800ecc5da7b25d5039a12b8f34494ce7ce0f7.tar.gz
nextcloud-server-b96800ecc5da7b25d5039a12b8f34494ce7ce0f7.zip
fix(files_sharing): getShares optional chaining
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/files_sharing/src')
-rw-r--r--apps/files_sharing/src/views/SharingTab.vue2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/src/views/SharingTab.vue b/apps/files_sharing/src/views/SharingTab.vue
index 139b137453a..0d991fa3982 100644
--- a/apps/files_sharing/src/views/SharingTab.vue
+++ b/apps/files_sharing/src/views/SharingTab.vue
@@ -207,7 +207,7 @@ export default {
this.processSharedWithMe(sharedWithMe)
this.processShares(shares)
} catch (error) {
- if (error.response.data?.ocs?.meta?.message) {
+ if (error?.response?.data?.ocs?.meta?.message) {
this.error = error.response.data.ocs.meta.message
} else {
this.error = t('files_sharing', 'Unable to load the shares list')