فهرست منبع

Merge pull request #10595 from growilabs/fix/175714-cannot-toggle-wide-view-switch

fix: Cannot toggle wide view switch
Yuki Takei 3 ماه پیش
والد
کامیت
75bd7d3483
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  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]);