Skip to content

Commit

Permalink
fix(files): use OC.Files.getClient()
Browse files Browse the repository at this point in the history
`OCA.Files.App.fileList` is not initiated anymore.

Signed-off-by: Max <max@nextcloud.com>
  • Loading branch information
max-nextcloud committed Sep 25, 2023
1 parent 6c7c26e commit c7c331b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/files/src/services/FileInfo.js
Expand Up @@ -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]
Expand Down

0 comments on commit c7c331b

Please sign in to comment.