mirror of
https://github.com/netbirdio/docs.git
synced 2026-04-20 09:26:37 +00:00
fix nav
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user