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:
Max 2023-08-27 14:30:07 +02:00 committed by max-nextcloud
parent 7ba6409270
commit 27bcef72e0

View file

@ -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]