Update src/components/UI/docs/Breadcrumbs.tsx
Co-authored-by: Paul Wackerow <54227730+wackerow@users.noreply.github.com>
This commit is contained in:
parent
9107cf3988
commit
5186a1f74f
|
@ -7,8 +7,7 @@ export const Breadcrumbs: FC = () => {
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
|
|
||||||
let pathSplit = router.asPath.split('#')[0].split('/');
|
let pathSplit = router.asPath.split('#')[0].split('/');
|
||||||
pathSplit = pathSplit.splice(1, pathSplit.length)
|
pathSplit = pathSplit.splice(1, pathSplit.length);
|
||||||
.map((path) => path.includes('#') ? path.split('#')[0] : path);
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
|
Loading…
Reference in New Issue