Skip to content

Commit

Permalink
restore wrongly deleted code
Browse files Browse the repository at this point in the history
  • Loading branch information
slorber committed Nov 10, 2022
1 parent a1b0973 commit fadadee
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ function useCategoryHrefWithSSRFallback(
): string | undefined {
const isBrowser = useIsBrowser();
return useMemo(() => {
if (item.href && !item.linkUnlisted) {
return item.href;
}
// In these cases, it's not necessary to render a fallback
// We skip the "findFirstCategoryLink" computation
if (isBrowser || !item.collapsible) {
Expand Down

0 comments on commit fadadee

Please sign in to comment.