Browse Source

fix build error

Signed-off-by: ryjiang <jiangruiyi@gmail.com>
ryjiang 1 year ago
parent
commit
04da8c8438
1 changed files with 0 additions and 14 deletions
  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 {