فهرست منبع

Connecting to the back end

Shun Miyazawa 1 سال پیش
والد
کامیت
7b51ee7e2d
1فایلهای تغییر یافته به همراه7 افزوده شده و 2 حذف شده
  1. 7 2
      apps/app/src/client/components/Navbar/GrowiContextualSubNavigation.tsx

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

@@ -80,9 +80,14 @@ const PageOperationMenuItems = (props: PageOperationMenuItemsProps): JSX.Element
     // eslint-disable-next-line no-alert
     const answer = window.confirm(t('sync-latest-reevision-body.confirm'));
     if (answer) {
-      // TODO: https://redmine.weseek.co.jp/issues/149418
+      try {
+        await syncLatestRevisionBody(pageId);
+      }
+      catch (err) {
+        //
+      }
     }
-  }, [t]);
+  }, [pageId, t]);
 
   return (
     <>