Skip to content

Commit d99cd06

Browse files
authored
fix(toc): preview not happy (#877)
1 parent c929835 commit d99cd06

File tree

1 file changed

+1
-1
lines changed
  • apps/website/src/components/toc

1 file changed

+1
-1
lines changed

apps/website/src/components/toc/toc.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const TableOfContents = component$<TableOfContentsProps>(({ headings }) => {
3030
const activeHeading = useActiveItem(itemIds);
3131
const tree = buildTree(sanitizedHeadings);
3232
const fixStartingBug: Node = { ...tree, children: [tree] };
33-
return <RecursiveList tree={fixStartingBug} activeItem={activeHeading.value} />;
33+
return <RecursiveList tree={fixStartingBug} activeItem={activeHeading.value ?? ''} />;
3434
});
3535

3636
function deltaToStrg(

0 commit comments

Comments
 (0)