From 9cb85a0c21626974c3246613499e7ad4c2d6b762 Mon Sep 17 00:00:00 2001 From: Lucas Oliveira Date: Wed, 28 Jun 2023 11:07:49 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20fix(tabsContext.tsx):=20remove?= =?UTF-8?q?=20console.log=20statements=20for=20cleaner=20code=20?= =?UTF-8?q?=F0=9F=94=A7=20fix(nodeToolbarComponent/index.tsx):=20remove=20?= =?UTF-8?q?console.log=20statement=20for=20cleaner=20code=20=F0=9F=94=A7?= =?UTF-8?q?=20fix(utils.ts):=20remove=20console.log=20statement=20for=20cl?= =?UTF-8?q?eaner=20code?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/frontend/src/contexts/tabsContext.tsx | 3 --- .../pages/FlowPage/components/nodeToolbarComponent/index.tsx | 1 - src/frontend/src/utils.ts | 1 - 3 files changed, 5 deletions(-) diff --git a/src/frontend/src/contexts/tabsContext.tsx b/src/frontend/src/contexts/tabsContext.tsx index 0987d27db..b847f4ecd 100644 --- a/src/frontend/src/contexts/tabsContext.tsx +++ b/src/frontend/src/contexts/tabsContext.tsx @@ -87,12 +87,9 @@ export function TabsProvider({ children }: { children: ReactNode }) { Saveflows.forEach((flow) => { if (flow.data && flow.data?.nodes) flow.data?.nodes.forEach((node) => { - // console.log(node.data.type); //looking for file fields to prevent saving the content and breaking the flow for exceeding the the data limite for local storage Object.keys(node.data.node.template).forEach((key) => { - // console.log(node.data.node.template[key].type); if (node.data.node.template[key].type === "file") { - // console.log(node.data.node.template[key]); node.data.node.template[key].content = null; node.data.node.template[key].value = ""; } diff --git a/src/frontend/src/pages/FlowPage/components/nodeToolbarComponent/index.tsx b/src/frontend/src/pages/FlowPage/components/nodeToolbarComponent/index.tsx index 70d1268f0..57709d9fc 100644 --- a/src/frontend/src/pages/FlowPage/components/nodeToolbarComponent/index.tsx +++ b/src/frontend/src/pages/FlowPage/components/nodeToolbarComponent/index.tsx @@ -49,7 +49,6 @@ const NodeToolbarComponent = (props) => { )} onClick={(event) => { event.preventDefault(); - // console.log(reactFlowInstance.getNode(props.data.id)); paste( { nodes: [reactFlowInstance.getNode(props.data.id)], diff --git a/src/frontend/src/utils.ts b/src/frontend/src/utils.ts index 46b9c51cd..df8a8a61a 100644 --- a/src/frontend/src/utils.ts +++ b/src/frontend/src/utils.ts @@ -656,7 +656,6 @@ export function isValidConnection( export function removeApiKeys(flow: FlowType): FlowType { let cleanFLow = _.cloneDeep(flow); - console.log(cleanFLow); cleanFLow.data.nodes.forEach((node) => { for (const key in node.data.node.template) { if (node.data.node.template[key].password) {