From 89d0aa9926ad06a809f36c2d9ff8989378b66e9d Mon Sep 17 00:00:00 2001 From: Roman Timashev Date: Tue, 6 Sep 2022 12:54:15 +0300 Subject: [PATCH] MenuItem component typing fix --- src/components/Menu/MenuItem.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Menu/MenuItem.tsx b/src/components/Menu/MenuItem.tsx index d398c54b..d44e5735 100644 --- a/src/components/Menu/MenuItem.tsx +++ b/src/components/Menu/MenuItem.tsx @@ -13,7 +13,7 @@ export const MenuItem: React.FC = props => { const router = useRouter() const current = router.asPath === props.href const selected = current || (!ignore.includes(props.href) && isPartOfPath(props.href, router.asPath)) - const href = current ? null : props.href + const href = current ? undefined : props.href return (