rework/lightweight #12
@ -65,10 +65,8 @@ export function TableOfContents() {
|
|||||||
if (!section.children) return false;
|
if (!section.children) return false;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
section.children.findIndex((child) => {
|
section.children.findIndex((child) => child.hash === currentSection()) !==
|
||||||
console.log(child.hash, currentSection());
|
-1
|
||||||
return child.hash === currentSection();
|
|
||||||
}) !== -1
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user