Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion components/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,12 @@
});
useEffect(() => {
const pathWtihoutFragment = extractPathWithoutFragment(router.asPath);
setActive({
getDocs: false,
getStarted: false,
getReference: false,
getSpecification: false,
});
if (getDocsPath.includes(pathWtihoutFragment)) {
setActive({ ...active, getDocs: true });
} else if (getStartedPath.includes(pathWtihoutFragment)) {
Expand All @@ -279,7 +285,7 @@
setActive({ ...active, getSpecification: true });
}
}, [router.asPath]);

Check failure on line 288 in components/Sidebar.tsx

View workflow job for this annotation

GitHub Actions / Code Quality Checks

Delete `·`
const handleClickDoc = () => {
setActive({ ...active, getDocs: !active.getDocs });
};
Expand Down
Loading