diff --git a/src/components/Breadcrum.tsx b/src/components/Breadcrum.tsx index 3c76dbc..e47fed9 100644 --- a/src/components/Breadcrum.tsx +++ b/src/components/Breadcrum.tsx @@ -21,7 +21,9 @@ const Breadcrum: React.FC = (props) => { {parts.map((e,i,arr)=>(
  • { - props.onDirClick?.("/"+arr.slice(0,i-1).join("/")) + if (i != arr.length - 1){ + props.onDirClick?.("/"+arr.slice(0,i-1).join("/")) + } }}>{e}
  • ))}