mirror of
https://github.com/nextcloud/server.git
synced 2026-04-22 23:03:00 -04:00
fix(files): use OC.Files.getClient()
`OCA.Files.App.fileList` is not initiated anymore. Signed-off-by: Max <max@nextcloud.com>
This commit is contained in:
parent
7ba6409270
commit
27bcef72e0
1 changed files with 2 additions and 2 deletions
|
|
@ -34,9 +34,9 @@ export default async function(url) {
|
|||
})
|
||||
|
||||
// TODO: create new parser or use cdav-lib when available
|
||||
const file = OCA.Files.App.fileList.filesClient._client.parseMultiStatus(response.data)
|
||||
const file = OC.Files.getClient()._client.parseMultiStatus(response.data)
|
||||
// TODO: create new parser or use cdav-lib when available
|
||||
const fileInfo = OCA.Files.App.fileList.filesClient._parseFileInfo(file[0])
|
||||
const fileInfo = OC.Files.getClient()._parseFileInfo(file[0])
|
||||
|
||||
// TODO remove when no more legacy backbone is used
|
||||
fileInfo.get = (key) => fileInfo[key]
|
||||
|
|
|
|||
Loading…
Reference in a new issue