Bladeren bron

fix: force fetch current page after updating content

Shun Miyazawa 5 maanden geleden
bovenliggende
commit
7a38ed8aee
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1 1
      apps/app/src/client/components/Navbar/GrowiContextualSubNavigation.tsx

+ 1 - 1
apps/app/src/client/components/Navbar/GrowiContextualSubNavigation.tsx

@@ -342,7 +342,7 @@ const GrowiContextualSubNavigation = (props: GrowiContextualSubNavigationProps):
   const switchContentWidthHandler = useCallback(async (pageId: string, value: boolean) => {
     if (!isSharedPage) {
       await updateContentWidth(pageId, value);
-      fetchCurrentPage();
+      fetchCurrentPage({ force: true });
     }
   }, [isSharedPage, fetchCurrentPage]);