Ver código fonte

fix error

Signed-off-by: ryjiang <jiangruiyi@gmail.com>
ryjiang 1 ano atrás
pai
commit
145c601aab

+ 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 {