mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Merge pull request #51093 from nextcloud/backport/51077/stable31
[stable31] files: fix exception when share-attributes is undefined
This commit is contained in:
commit
4ab69ec7f4
3 changed files with 4 additions and 4 deletions
|
|
@ -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',
|
||||
})
|
||||
|
||||
|
|
|
|||
4
dist/files-sidebar.js
vendored
4
dist/files-sidebar.js
vendored
File diff suppressed because one or more lines are too long
2
dist/files-sidebar.js.map
vendored
2
dist/files-sidebar.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue