Skip to content

Commit 2436add

Browse files
authored
Merge pull request #10812 from altinocoelho/fix_10806
[Hotfix] Fixes [#10806] added condition to setShouldShowSideNav as false
2 parents a8c6919 + 0d86d20 commit 2436add

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/components/Layout.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ const Layout: React.FC<IProps> = ({
5151
useEffect(() => {
5252
if (path.includes("/docs/")) {
5353
setShouldShowSideNav(true)
54+
} else {
55+
setShouldShowSideNav(false)
5456
}
5557

5658
if (location.hash && !location.hash.includes("gatsby")) {

0 commit comments

Comments
 (0)