From 53969946d209c73aa0b68f3baa301e2419e5889d Mon Sep 17 00:00:00 2001 From: Djeeberjr Date: Tue, 27 Jul 2021 21:44:24 +0200 Subject: [PATCH] fixed breadcrum --- src/components/Breadcrum.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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}
  • ))}