Skip to content

Commit

Permalink
build: update build files
Browse files Browse the repository at this point in the history
  • Loading branch information
aliceoq committed Dec 15, 2023
1 parent 06242ee commit cec96dc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion dist/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6175,8 +6175,10 @@ var TableOfContents = ({ headingList }) => {
};
if (heading.tagName === "H2") {
headings.push({ ...item2, children: [] });
} else {
} else if (headings.length > 0) {
headings[headings.length - 1].children.push({ ...item2 });
} else {
headings.push({ ...item2, children: [] });
}
});
setHeadingItems(headings);
Expand Down
2 changes: 1 addition & 1 deletion dist/index.mjs.map

Large diffs are not rendered by default.

0 comments on commit cec96dc

Please sign in to comment.