fixed breadcrum onDirClick

This commit is contained in:
Djeeberjr 2021-10-14 18:59:52 +02:00
parent 91e75a2c72
commit 6b8c922d5b

View File

@ -49,7 +49,7 @@ const Breadcrum: React.FC<Props> = ({path,onDirClick}) => {
className={`${last?"text-blue-500":""}`} className={`${last?"text-blue-500":""}`}
onClick={()=>{ onClick={()=>{
if (!last){ 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}</a> }}>{e}</a>
</li> </li>