From e3fe259ce271f79401d706634c7b24d66a3ddf8f Mon Sep 17 00:00:00 2001 From: anovazzi1 Date: Mon, 20 Mar 2023 10:35:40 -0300 Subject: [PATCH] remove some console logs --- .../GenericNode/components/parameterComponent/index.tsx | 1 - .../alertDropDown/components/singleAlertComponent/index.tsx | 1 - src/frontend/src/alerts/alertDropDown/index.tsx | 1 - src/frontend/src/components/chatComponent/index.tsx | 4 ---- src/frontend/src/controllers/NodesServices/index.ts | 1 - 5 files changed, 8 deletions(-) diff --git a/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx b/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx index 0ae55a4ea..c1a6d5f5f 100644 --- a/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx +++ b/src/frontend/src/CustomNodes/GenericNode/components/parameterComponent/index.tsx @@ -39,7 +39,6 @@ export default function ParameterComponent({ const [enabled, setEnabled] = useState( data.node.template[name]?.value ?? false ); - console.log(data.node.template[name]); const { reactFlowInstance } = useContext(typesContext); let disabled = reactFlowInstance?.getEdges().some((e) => e.targetHandle === id) ?? false; diff --git a/src/frontend/src/alerts/alertDropDown/components/singleAlertComponent/index.tsx b/src/frontend/src/alerts/alertDropDown/components/singleAlertComponent/index.tsx index 61965929d..576dfb0b8 100644 --- a/src/frontend/src/alerts/alertDropDown/components/singleAlertComponent/index.tsx +++ b/src/frontend/src/alerts/alertDropDown/components/singleAlertComponent/index.tsx @@ -7,7 +7,6 @@ import { SingleAlertComponentType } from "../../../../types/alerts"; export default function SingleAlert({ dropItem, removeAlert}:SingleAlertComponentType) { const [show, setShow] = useState(true); const type = dropItem.type; - console.log(dropItem.id) return ( { let newChat = _.cloneDeep(old); if(JSON.stringify(flow.chat) !==JSON.stringify(old)){ - console.log(old,flow.chat) tabsChange = true return old } @@ -43,7 +42,6 @@ export default function Chat({ flow, reactFlowInstance }: ChatType) { return newChat; }); if(tabsChange){ - console.log(flow.chat) if(thought){ updateFlow({..._.cloneDeep(flow),chat:[...flow.chat,{isSend,message,thought}]}) } @@ -98,11 +96,9 @@ export default function Chat({ flow, reactFlowInstance }: ChatType) { let message = chatValue; setChatValue(""); addChatHistory(message, true); - console.log({ ...reactFlowInstance.toObject(), message, chatHistory }); sendAll({ ...reactFlowInstance.toObject(), message, chatHistory}) .then((r) => { - console.log(r.data); addChatHistory(r.data.result, false, r.data.thought); setLockChat(false); }) diff --git a/src/frontend/src/controllers/NodesServices/index.ts b/src/frontend/src/controllers/NodesServices/index.ts index 046566bc2..f0257ea00 100644 --- a/src/frontend/src/controllers/NodesServices/index.ts +++ b/src/frontend/src/controllers/NodesServices/index.ts @@ -6,6 +6,5 @@ export async function getAll():Promise> { } export async function sendAll(data:sendAllProps) { - console.log(data); return await axios.post(`/predict`, data); } \ No newline at end of file