From 6b8c922d5bb0687169f8aada48e3aed8f416605a Mon Sep 17 00:00:00 2001 From: Djeeberjr Date: Thu, 14 Oct 2021 18:59:52 +0200 Subject: [PATCH] fixed breadcrum onDirClick --- src/components/Breadcrum.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Breadcrum.tsx b/src/components/Breadcrum.tsx index b002ba9..db6aaf6 100644 --- a/src/components/Breadcrum.tsx +++ b/src/components/Breadcrum.tsx @@ -49,7 +49,7 @@ const Breadcrum: React.FC = ({path,onDirClick}) => { className={`${last?"text-blue-500":""}`} onClick={()=>{ if (!last){ - onDirClick?.(new ObjID(path.bucket,"/"+arr.slice(0,i-1).join("/"))) + onDirClick?.(new ObjID(path.bucket,arr.slice(0,i+1).join("/"))) } }}>{e}