瀏覽代碼

fix error

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

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

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