Explorar o código

:memo: console.info("api request"

visuddhinanda hai 1 ano
pai
achega
bcf1c1df37
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      dashboard/src/components/article/AnthologyDetail.tsx

+ 2 - 1
dashboard/src/components/article/AnthologyDetail.tsx

@@ -45,12 +45,13 @@ const AnthologyDetailWidget = ({
 
   function fetchData(id?: string) {
     const url = `/v2/anthology/${id}`;
-    console.info("url", url);
+    console.info("api request", url);
     if (typeof onLoading !== "undefined") {
       onLoading(true);
     }
     get<IAnthologyResponse>(url)
       .then((response) => {
+        console.info("api response", response);
         if (response.ok) {
           const item: IAnthologyDataResponse = response.data;
           let newTree: IAnthologyData = {