aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFerdinand Thiessen <opensource@fthiessen.de>2025-07-23 00:48:21 +0200
committerFerdinand Thiessen <opensource@fthiessen.de>2025-07-23 00:48:21 +0200
commit2a4c3c66133d95a5238707cf69fb438e0a3bc14a (patch)
treed136d0ed25fbbfddefbe9a9b8459bed6b8bc5039
parentcf0abe7fcec3de96a8bcef961370b57567332267 (diff)
downloadnextcloud-server-fix/only-show-reshare-if-there-is.tar.gz
nextcloud-server-fix/only-show-reshare-if-there-is.zip
fix(files_sharing): only show "shared with me" information if sharedfix/only-show-reshare-if-there-is
The variable is intialized to `{}` which is truthy, so instead just check if there is a user assigned to the share info. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
-rw-r--r--apps/files_sharing/src/views/SharingTab.vue3
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/files_sharing/src/views/SharingTab.vue b/apps/files_sharing/src/views/SharingTab.vue
index 82a11dea2e0..cbe1cd96fa0 100644
--- a/apps/files_sharing/src/views/SharingTab.vue
+++ b/apps/files_sharing/src/views/SharingTab.vue
@@ -243,8 +243,7 @@ export default {
* @return {boolean}
*/
isSharedWithMe() {
- return this.sharedWithMe !== null
- && this.sharedWithMe !== undefined
+ return !!this.sharedWithMe?.user
},
/**