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,