aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2024-08-09 15:17:57 +0200
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2024-08-10 12:49:31 +0000
commitc8b00569a2f72a76efea3fe0b8219b9b72d2bd32 (patch)
treeb7fbde7a5c15f8cd346ce4c94862469d2d8a3a29 /apps
parent7a7444015eea3a7ae8e725d5086322fb566ff23e (diff)
downloadnextcloud-server-c8b00569a2f72a76efea3fe0b8219b9b72d2bd32.tar.gz
nextcloud-server-c8b00569a2f72a76efea3fe0b8219b9b72d2bd32.zip
fix: fix getting the folder node from the dav response
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps')
-rw-r--r--apps/files_trashbin/src/services/trashbin.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_trashbin/src/services/trashbin.ts b/apps/files_trashbin/src/services/trashbin.ts
index e7744463011..deab215a25c 100644
--- a/apps/files_trashbin/src/services/trashbin.ts
+++ b/apps/files_trashbin/src/services/trashbin.ts
@@ -50,7 +50,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,