From 69ea15cc984e9d4b4499820b77cd1ba7f3a7c3bc Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Fri, 9 Aug 2024 15:17:57 +0200 Subject: [PATCH] fix: fix getting the folder node from the dav response Signed-off-by: Robin Appelman --- apps/files_trashbin/src/services/trashbin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/files_trashbin/src/services/trashbin.ts b/apps/files_trashbin/src/services/trashbin.ts index e0ad894d1fe..9fef16d032f 100644 --- a/apps/files_trashbin/src/services/trashbin.ts +++ b/apps/files_trashbin/src/services/trashbin.ts @@ -35,7 +35,7 @@ export const getContents = async (path = '/'): Promise => { }) as ResponseDataDetailed 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,