2
0
Эх сурвалжийг харах

don't show toast error even if retrieving error is occured

Yuki Takei 4 жил өмнө
parent
commit
cd3d3bd0e8

+ 1 - 6
packages/app/src/components/Sidebar/RecentChanges.tsx

@@ -10,7 +10,6 @@ import { UserPicture } from '@growi/ui';
 import { DevidedPagePath } from '@growi/core';
 
 import PagePathHierarchicalLink from '~/components/PagePathHierarchicalLink';
-import { toastError } from '~/client/util/apiNotification';
 import { useSWRxRecentlyUpdated } from '~/stores/page';
 import loggerFactory from '~/utils/logger';
 
@@ -127,11 +126,7 @@ SmallPageItem.propTypes = {
 const RecentChanges: FC<void> = () => {
 
   const { t } = useTranslation();
-  const { data: pages, error, mutate } = useSWRxRecentlyUpdated();
-
-  if (error != null) {
-    toastError(error, 'Error occurred in updating History');
-  }
+  const { data: pages, mutate } = useSWRxRecentlyUpdated();
 
   const [isRecentChangesSidebarSmall, setIsRecentChangesSidebarSmall] = useState(false);