diff --git a/components/TOC.tsx b/components/TOC.tsx index f51acadc0fef..8b655b07d784 100644 --- a/components/TOC.tsx +++ b/components/TOC.tsx @@ -75,7 +75,7 @@ export default function TOC({ className, cssBreakingPoint = 'xl', toc, contentSe
item.slug)} + items={tocItems.map((item) => (item.slug ? item.slug : item.slugWithATag))} currentClassName='text-primary-500 font-bold' componentTag='div' rootEl={contentSelector} @@ -85,7 +85,7 @@ export default function TOC({ className, cssBreakingPoint = 'xl', toc, contentSe