fix(files): exception when share-attributes is undefined

Signed-off-by: Varun Patil <varunpatil@ucla.edu>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
This commit is contained in:
Varun Patil 2025-02-26 11:50:39 -08:00 committed by nextcloud-command
parent 774afcb375
commit dbef6977db
3 changed files with 4 additions and 4 deletions

View file

@ -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',
})

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long