Merge pull request #47153 from nextcloud/trashbin-fix-folder-extract

fix: fix getting the folder node from the dav response
pull/46987/head
Ferdinand Thiessen 2024-08-10 14:48:14 +07:00 committed by GitHub
commit d50b6da868
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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,

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long