Skip to content

Commit fadadee

Browse files
committed
restore wrongly deleted code
1 parent a1b0973 commit fadadee

File tree

1 file changed

+3
-0
lines changed
  • packages/docusaurus-theme-classic/src/theme/DocSidebarItem/Category

1 file changed

+3
-0
lines changed

packages/docusaurus-theme-classic/src/theme/DocSidebarItem/Category/index.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ function useCategoryHrefWithSSRFallback(
5959
): string | undefined {
6060
const isBrowser = useIsBrowser();
6161
return useMemo(() => {
62+
if (item.href && !item.linkUnlisted) {
63+
return item.href;
64+
}
6265
// In these cases, it's not necessary to render a fallback
6366
// We skip the "findFirstCategoryLink" computation
6467
if (isBrowser || !item.collapsible) {

0 commit comments

Comments
 (0)