Browse Source

fix currentPage error

jam411 3 years ago
parent
commit
cdca4b2079
1 changed files with 2 additions and 2 deletions
  1. 2 2
      packages/app/src/components/Navbar/GrowiSubNavigationSwitcher.jsx

+ 2 - 2
packages/app/src/components/Navbar/GrowiSubNavigationSwitcher.jsx

@@ -6,10 +6,10 @@ import PropTypes from 'prop-types';
 import StickyEvents from 'sticky-events';
 import { debounce } from 'throttle-debounce';
 
+import { useSWRxCurrentPage } from '~/stores/page';
 import { useSidebarCollapsed } from '~/stores/ui';
 import loggerFactory from '~/utils/logger';
 
-import { useSWRxCurrentPage } from '~/stores/page';
 
 import GrowiContextualSubNavigation from './GrowiContextualSubNavigation';
 
@@ -126,7 +126,7 @@ const GrowiSubNavigationSwitcher = (props) => {
         ref={fixedContainerRef}
         style={{ width }}
       >
-        <GrowiContextualSubNavigation currentPage isCompactMode isLinkSharingDisabled />
+        <GrowiContextualSubNavigation currentPage={currentPage} isCompactMode isLinkSharingDisabled />
       </div>
     </div>
   );