Skip to content

Commit 5ef98cd

Browse files
committed
fix: repetetive toc
1 parent 12f4b9b commit 5ef98cd

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/pages/index.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ const toc = [];
66

77
const AllContent = () => {
88
const components = [];
9+
toc.length = 0;
910
let i = -1;
1011
for (let d in sideBar) {
1112
i++;

0 commit comments

Comments
 (0)