jam411 3 лет назад
Родитель
Сommit
cdca4b2079
1 измененных файлов с 2 добавлено и 2 удалено
  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>
   );