mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
Merge pull request #47153 from nextcloud/trashbin-fix-folder-extract
fix: fix getting the folder node from the dav response
This commit is contained in:
commit
d50b6da868
3 changed files with 4 additions and 4 deletions
|
|
@ -35,7 +35,7 @@ export const getContents = async (path = '/'): Promise<ContentsWithRoot> => {
|
|||
}) as ResponseDataDetailed<FileStat[]>
|
||||
|
||||
const contents = contentsResponse.data.map(resultToNode)
|
||||
const [folder] = contents.splice(contents.findIndex((node) => node.dirname === path), 1)
|
||||
const [folder] = contents.splice(contents.findIndex((node) => node.path === path), 1)
|
||||
|
||||
return {
|
||||
folder: folder as Folder,
|
||||
|
|
|
|||
4
dist/files_trashbin-init.js
vendored
4
dist/files_trashbin-init.js
vendored
File diff suppressed because one or more lines are too long
2
dist/files_trashbin-init.js.map
vendored
2
dist/files_trashbin-init.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue