mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-19 13:03:31 +01:00
fix: hydration error
This commit is contained in:
@@ -97,7 +97,7 @@ export function SidebarLayout({ packageName, data, children }: PropsWithChildren
|
|||||||
</Menu.Item>
|
</Menu.Item>
|
||||||
));
|
));
|
||||||
|
|
||||||
const asPathWithoutQuery = router.asPath.split('?')[0];
|
const asPathWithoutQuery = router.asPath.split('?')[0]?.split('#')[0];
|
||||||
const breadcrumbs = asPathWithoutQuery?.split('/').map((path, idx, original) => (
|
const breadcrumbs = asPathWithoutQuery?.split('/').map((path, idx, original) => (
|
||||||
<Link key={idx} href={original.slice(0, idx + 1).join('/')} passHref>
|
<Link key={idx} href={original.slice(0, idx + 1).join('/')} passHref>
|
||||||
<Anchor component="a">{path}</Anchor>
|
<Anchor component="a">{path}</Anchor>
|
||||||
|
|||||||
Reference in New Issue
Block a user