visuddhinanda 2 rokov pred
rodič
commit
175746606c

+ 0 - 4
dashboard/src/components/term/TermCommunity.tsx

@@ -44,10 +44,8 @@ const TermCommunityWidget = ({ word }: IWidget) => {
     get<ITermListResponse>(url)
     get<ITermListResponse>(url)
       .then((json) => {
       .then((json) => {
         if (json.ok === false) {
         if (json.ok === false) {
-          console.log("dict community", json.message);
           return;
           return;
         }
         }
-        console.log("count", json.data);
         let meaning = new Map<string, number>();
         let meaning = new Map<string, number>();
         let note = new Map<string, number>();
         let note = new Map<string, number>();
         let editorId = new Map<string, number>();
         let editorId = new Map<string, number>();
@@ -102,9 +100,7 @@ const TermCommunityWidget = ({ word }: IWidget) => {
         });
         });
         _data.editor.sort((a, b) => b.score - a.score);
         _data.editor.sort((a, b) => b.score - a.score);
         setWordData(_data);
         setWordData(_data);
-        console.log("_data", _data);
         if (_data.editor.length > 0) {
         if (_data.editor.length > 0) {
-          console.log("show", _data.editor.length);
           setShow(true);
           setShow(true);
         }
         }
       })
       })