diff options
author | Varun Patil <varunpatil@ucla.edu> | 2025-02-26 11:50:39 -0800 |
---|---|---|
committer | nextcloud-command <nextcloud-command@users.noreply.github.com> | 2025-02-27 12:21:16 +0000 |
commit | 752bc004aee1772ad6061005b3ed1a988e5bb953 (patch) | |
tree | 7e0287cfdfa756a73d126404f536373157b78025 /apps/files | |
parent | 6e52b55555d08f61b21e2b2fdfbe9d394daabdd1 (diff) | |
download | nextcloud-server-backport/51077/stable31.tar.gz nextcloud-server-backport/51077/stable31.zip |
fix(files): exception when share-attributes is undefinedbackport/51077/stable31
Signed-off-by: Varun Patil <varunpatil@ucla.edu>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
Diffstat (limited to 'apps/files')
-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', }) |