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>
pull/54049/head
Ferdinand Thiessen 2025-07-23 00:48:21 +07:00 committed by nextcloud-command
parent 7c69862a5d
commit 61c9a6eb22
1 changed files with 1 additions and 2 deletions

@ -243,8 +243,7 @@ export default {
* @return {boolean}
*/
isSharedWithMe() {
return this.sharedWithMe !== null
&& this.sharedWithMe !== undefined
return !!this.sharedWithMe?.user
},
/**