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();
|
||||
|
||||
let pathSplit = router.asPath.split('#')[0].split('/');
|
||||
pathSplit = pathSplit.splice(1, pathSplit.length)
|
||||
.map((path) => path.includes('#') ? path.split('#')[0] : path);
|
||||
pathSplit = pathSplit.splice(1, pathSplit.length);
|
||||
|
||||
return (
|
||||
<>
|
||||
|
|
Loading…
Reference in New Issue