Shun Miyazawa 4 лет назад
Родитель
Сommit
86c769b5dd

+ 0 - 12
packages/app/src/components/InAppNotification/InAppNotificationDropdown.tsx

@@ -34,7 +34,6 @@ const InAppNotificationDropdown: FC = (props) => {
   useEffect(() => {
     initializeSocket(props);
     fetchNotificationList(props);
-    fetchNotificationStatus(props);
   }, []);
 
   const initializeSocket = (props) => {
@@ -53,17 +52,6 @@ const InAppNotificationDropdown: FC = (props) => {
     });
   };
 
-  const fetchNotificationStatus = async(props) => {
-    try {
-      const res = await props.appContainer.apiv3Get('in-app-notification/status');
-      const { count } = res.data;
-      setCount(count);
-    }
-    catch (err) {
-      toastError(err);
-    }
-  };
-
   const updateNotificationStatus = () => {
     try {
       // await this.props.crowi.apiPost('/notification.read');