Quellcode durchsuchen

add log on fetch

visuddhinanda vor 2 Jahren
Ursprung
Commit
dd61d1d4a8
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  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") {
         if (typeof params.keyword !== "undefined") {
           url += "&search=" + (params.keyword ? params.keyword : "");
           url += "&search=" + (params.keyword ? params.keyword : "");
         }
         }
-        console.info("url", url);
+        console.debug("sentence history list", url);
         const res = await get<ISentHistoryListResponse>(url);
         const res = await get<ISentHistoryListResponse>(url);
         if (res.ok) {
         if (res.ok) {
-          console.debug(res.data);
+          console.debug("sentence history list", res.data);
           const items: ISentHistory[] = res.data.rows.map((item, id) => {
           const items: ISentHistory[] = res.data.rows.map((item, id) => {
             return {
             return {
               content: item.content,
               content: item.content,