From b96800ecc5da7b25d5039a12b8f34494ce7ce0f7 Mon Sep 17 00:00:00 2001 From: skjnldsv Date: Wed, 7 Aug 2024 16:05:14 +0200 Subject: fix(files_sharing): getShares optional chaining Signed-off-by: skjnldsv --- apps/files_sharing/src/views/SharingTab.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/files_sharing/src') 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') -- cgit v1.2.3