diff --git a/components/landing/TableOfContents.tsx b/components/landing/TableOfContents.tsx index d82d2945eaa0..633f37bb1ff5 100644 --- a/components/landing/TableOfContents.tsx +++ b/components/landing/TableOfContents.tsx @@ -1,9 +1,7 @@ -import { useRouter } from 'next/router' import cx from 'classnames' import { ActionList } from '@primer/react' import { Link } from 'components/Link' -import { BumpLink } from 'components/ui/BumpLink' import type { TocItem } from 'components/context/ProductLandingContext' type Props = { @@ -12,22 +10,43 @@ type Props = { } export const TableOfContents = (props: Props) => { const { items, variant = 'expanded' } = props - const router = useRouter() + + const actionItems = (items || []).filter((item) => typeof item !== 'undefined') return (