From fc23bda7b31dbf0590a39720ef7b07e4ae05823a Mon Sep 17 00:00:00 2001 From: anovazzi1 Date: Sun, 19 Feb 2023 15:23:31 -0300 Subject: [PATCH] clean console log and added toObject() log --- space_flow/src/components/chatComponent/index.tsx | 3 +-- space_flow/src/components/inputListComponent/index.tsx | 1 - space_flow/src/pages/FlowPage/components/connection/index.tsx | 2 +- .../pages/FlowPage/components/extraSidebarComponent/index.tsx | 4 ++-- space_flow/src/utils.ts | 1 - 5 files changed, 4 insertions(+), 7 deletions(-) diff --git a/space_flow/src/components/chatComponent/index.tsx b/space_flow/src/components/chatComponent/index.tsx index c6d90cc51..f5e09213a 100644 --- a/space_flow/src/components/chatComponent/index.tsx +++ b/space_flow/src/components/chatComponent/index.tsx @@ -28,14 +28,12 @@ export default function Chat({ reactFlowInstance }) { ref.current.scrollIntoView({behavior: 'smooth'}); }, [chatHistory]) function validateNodes(){ - console.log(reactFlowInstance.getNodes()); if(reactFlowInstance.getNodes().some((n) => (n.data.node && Object.keys(n.data.node.template).some((t: any) => ((n.data.node.template[t].required && n.data.node.template[t].value === "") && (n.data.node.template[t].required && !reactFlowInstance.getEdges().some((e) => (e.sourceHandle.split('|')[1] === t && e.sourceHandle.split('|')[2] === n.id)))))))){ return false; } return true; } function validateChatNodes(){ - console.log(reactFlowInstance.getNodes()); if(!reactFlowInstance.getNodes().some((n)=> (n.type === 'chatOutputNode')) || !reactFlowInstance.getNodes().some((n)=> (n.type === 'chatInputNode'))){ return false; } @@ -103,6 +101,7 @@ export default function Chat({ reactFlowInstance }) {