File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -297,7 +297,7 @@ function DocSidebar({
297
297
const windowSize = useWindowSize ( ) ;
298
298
299
299
const shouldLoadSidebar =
300
- windowSize === windowSizes . mobile && mobileSidebarLoaded ;
300
+ windowSize === windowSizes . mobile ? mobileSidebarLoaded : true ;
301
301
302
302
useLockBodyScroll ( mobileSidebarOpen ) ;
303
303
Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ function Navbar(): JSX.Element {
99
99
const windowSize = useWindowSize ( ) ;
100
100
101
101
const shouldLoadNavbarSidebar =
102
- mobileNavbarSidebarLoaded && windowSize === windowSizes . mobile ;
102
+ windowSize === windowSizes . mobile ? mobileNavbarSidebarLoaded : true ;
103
103
104
104
useEffect ( ( ) => {
105
105
if ( windowSize === windowSizes . desktop ) {
You can’t perform that action at this time.
0 commit comments