From c8b00569a2f72a76efea3fe0b8219b9b72d2bd32 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 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 => { }) 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, -- 2.39.5