Skip to content

Commit e94101c

Browse files
susnuxbackportbot[bot]
authored andcommitted
fix(files_sharing): only show "shared with me" information if shared
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> [skip ci]
1 parent 7586d5a commit e94101c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

apps/files_sharing/src/views/SharingTab.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,8 +240,7 @@ export default {
240240
* @return {boolean}
241241
*/
242242
isSharedWithMe() {
243-
return this.sharedWithMe !== null
244-
&& this.sharedWithMe !== undefined
243+
return !!this.sharedWithMe?.user
245244
},
246245
247246
/**

0 commit comments

Comments
 (0)