Skip to content

Commit

Permalink
Merge pull request #47153 from nextcloud/trashbin-fix-folder-extract
Browse files Browse the repository at this point in the history
fix: fix getting the folder node from the dav response
  • Loading branch information
susnux authored Aug 10, 2024
2 parents dbd197c + 34e24b2 commit d50b6da
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion apps/files_trashbin/src/services/trashbin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions dist/files_trashbin-init.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/files_trashbin-init.js.map

Large diffs are not rendered by default.

0 comments on commit d50b6da

Please sign in to comment.