diff options
author | Varun Patil <varunpatil@ucla.edu> | 2025-02-26 11:50:39 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-26 11:50:39 -0800 |
commit | a34635f9d2f16e62e370269d21cbf69236eb9f17 (patch) | |
tree | 4e51eb78d363dc9d484383f73401909ad01a350a | |
parent | 774afcb37542d831065a14cce3bc8408b5924515 (diff) | |
download | nextcloud-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.ts | 2 |
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', }) |