Merge pull request #51093 from nextcloud/backport/51077/stable31

[stable31] files: fix exception when share-attributes is undefined
This commit is contained in:
John Molakvoæ 2025-02-27 14:57:00 +01:00 committed by GitHub
commit 4ab69ec7f4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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