mirror of
https://github.com/nextcloud/server.git
synced 2026-04-20 22:00:39 -04:00
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:
parent
774afcb375
commit
dbef6977db
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