From dbef6977db5b89ae8008754974d2b048f15b3cf3 Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Wed, 26 Feb 2025 11:50:39 -0800 Subject: fix(files): exception when share-attributes is undefined Signed-off-by: Varun Patil Signed-off-by: nextcloud-command --- apps/files/src/services/FileInfo.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/files/src') 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', }) -- cgit v1.2.3