aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files
diff options
context:
space:
mode:
authorMax <max@nextcloud.com>2023-08-27 14:30:07 +0200
committermax-nextcloud <max@nextcloud.com>2023-09-26 21:37:45 +0200
commit27bcef72e05e9e594001e294ddad2dd17d2eb9c4 (patch)
tree2e326fb28b1da945b0ddd412bfc305924d0f4973 /apps/files
parent7ba64092709a227f334a76b8d550ffbbbcb2682a (diff)
downloadnextcloud-server-27bcef72e05e9e594001e294ddad2dd17d2eb9c4.tar.gz
nextcloud-server-27bcef72e05e9e594001e294ddad2dd17d2eb9c4.zip
fix(files): use `OC.Files.getClient()`
`OCA.Files.App.fileList` is not initiated anymore. Signed-off-by: Max <max@nextcloud.com>
Diffstat (limited to 'apps/files')
-rw-r--r--apps/files/src/services/FileInfo.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files/src/services/FileInfo.js b/apps/files/src/services/FileInfo.js
index 0b3b0040c26..64b12d8594b 100644
--- a/apps/files/src/services/FileInfo.js
+++ b/apps/files/src/services/FileInfo.js
@@ -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]