diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2025-07-23 00:48:21 +0200 |
---|---|---|
committer | Ferdinand Thiessen <opensource@fthiessen.de> | 2025-07-23 00:48:21 +0200 |
commit | 2a4c3c66133d95a5238707cf69fb438e0a3bc14a (patch) | |
tree | d136d0ed25fbbfddefbe9a9b8459bed6b8bc5039 | |
parent | cf0abe7fcec3de96a8bcef961370b57567332267 (diff) | |
download | nextcloud-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.vue | 3 |
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 }, /** |