aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVarun Patil <varunpatil@ucla.edu>2025-02-26 11:50:39 -0800
committerGitHub <noreply@github.com>2025-02-26 11:50:39 -0800
commita34635f9d2f16e62e370269d21cbf69236eb9f17 (patch)
tree4e51eb78d363dc9d484383f73401909ad01a350a
parent774afcb37542d831065a14cce3bc8408b5924515 (diff)
downloadnextcloud-server-pulsejet-patch-share-attr.tar.gz
nextcloud-server-pulsejet-patch-share-attr.zip
files: fix exception when share-attributes is undefinedpulsejet-patch-share-attr
Signed-off-by: Varun Patil <varunpatil@ucla.edu>
-rw-r--r--apps/files/src/services/FileInfo.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/src/services/FileInfo.ts b/apps/files/src/services/FileInfo.ts
index d4c587794f9..18629845cca 100644
--- a/apps/files/src/services/FileInfo.ts
+++ b/apps/files/src/services/FileInfo.ts
@@ -22,7 +22,7 @@ export default function(node: Node) {
permissions: node.permissions,
mountType: node.attributes['mount-type'],
sharePermissions: node.attributes['share-permissions'],
- shareAttributes: JSON.parse(node.attributes['share-attributes']),
+ shareAttributes: JSON.parse(node.attributes['share-attributes'] || '[]'),
type: node.type === 'file' ? 'file' : 'dir',
})