瀏覽代碼

fix build error

Signed-off-by: ryjiang <jiangruiyi@gmail.com>
ryjiang 1 年之前
父節點
當前提交
04da8c8438
共有 1 個文件被更改,包括 0 次插入14 次删除
  1. 0 14
      client/src/pages/overview/collectionCard/CollectionCard.tsx

+ 0 - 14
client/src/pages/overview/collectionCard/CollectionCard.tsx

@@ -120,20 +120,6 @@ const CollectionCard: FC<CollectionCardProps> = ({
     navigate({ pathname: '/search', search: `?collectionName=${name}` });
   };
 
-<<<<<<< Updated upstream
-  const fetchData = useCallback(async () => {
-    try {
-      setLoading(true);
-      const data = (await CollectionHttp.count(name)) as CollectionData;
-      setCount(data._rowCount);
-    } catch (e) {
-    } finally {
-      setLoading(false);
-    }
-  }, [status]);
-
-=======
->>>>>>> Stashed changes
   useEffect(() => {
     const fetchData = async () => {
       try {