Przeglądaj źródła

add log on fetch

visuddhinanda 2 lat temu
rodzic
commit
dd61d1d4a8
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      dashboard/src/components/corpus/SentHistory.tsx

+ 2 - 2
dashboard/src/components/corpus/SentHistory.tsx

@@ -63,10 +63,10 @@ const SentHistoryWidget = ({ sentId }: IWidget) => {
         if (typeof params.keyword !== "undefined") {
           url += "&search=" + (params.keyword ? params.keyword : "");
         }
-        console.info("url", url);
+        console.debug("sentence history list", url);
         const res = await get<ISentHistoryListResponse>(url);
         if (res.ok) {
-          console.debug(res.data);
+          console.debug("sentence history list", res.data);
           const items: ISentHistory[] = res.data.rows.map((item, id) => {
             return {
               content: item.content,