This commit is contained in:
Pascal Fischer
2023-05-10 02:08:53 +02:00
parent 2f252643bc
commit cba03399cb
2 changed files with 2 additions and 6 deletions

View File

@@ -133,10 +133,7 @@ export function Layout({ children, title, tableOfContents }) {
section.links.find((link) => link.href === router.pathname)
)
let currentSection
if(!router.route.startsWith("/ipa")) {
currentSection = useTableOfContents(tableOfContents)
}
let currentSection = useTableOfContents(tableOfContents)
function isActive(section) {
if (section.id === currentSection) {