fix: sidebar

This commit is contained in:
Oleg Proskurin 2026-01-02 21:27:07 +07:00
parent 5d1309633d
commit b60a97c73f
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ export const DocsSidebar = ({ currentPath }: DocsSidebarProps) => {
const normalizePath = (path: string) => (path.length > 1 && path.endsWith('/') ? path.slice(0, -1) : path);
const normalizedCurrentPath = normalizePath(currentPath);
const isActive = (href: string) => normalizedCurrentPath === href;
const isActive = (href: string) => normalizedCurrentPath === normalizePath(href);
const isExpanded = (label: string) => expandedSections.includes(label);
return (