Skip to content

Commit 671a918

Browse files
authored
Merge pull request #47171 from nextcloud/backport/47153/stable29
[stable29] fix: fix getting the folder node from the dav response
2 parents 7a74440 + 0926b52 commit 671a918

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

apps/files_trashbin/src/services/trashbin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export const getContents = async (path = '/'): Promise<ContentsWithRoot> => {
5050
}) as ResponseDataDetailed<FileStat[]>
5151

5252
const contents = contentsResponse.data.map(resultToNode)
53-
const [folder] = contents.splice(contents.findIndex((node) => node.dirname === path), 1)
53+
const [folder] = contents.splice(contents.findIndex((node) => node.path === path), 1)
5454

5555
return {
5656
folder: folder as Folder,

dist/files_trashbin-init.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)