From 5fe4ac6ffa95c4668501cd3aba0647d8b6315de9 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Mon, 12 Jun 2023 07:05:00 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=87=20chore(frontend):=20comment=20out?= =?UTF-8?q?=20console.log=20statements=20The=20console.log=20statements=20?= =?UTF-8?q?were=20commented=20out=20in=20the=20following=20files:=20-=20sr?= =?UTF-8?q?c/frontend/src/components/intComponent/index.tsx=20-=20src/fron?= =?UTF-8?q?tend/src/contexts/tabsContext.tsx=20-=20src/frontend/src/modals?= =?UTF-8?q?/EditNodeModal/index.tsx=20-=20src/frontend/src/pages/FlowPage/?= =?UTF-8?q?components/nodeToolbarComponent/index.tsx=20-=20src/frontend/sr?= =?UTF-8?q?c/pages/FlowPage/index.tsx?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The console.log statements were not necessary and were removed to reduce noise in the console. --- src/frontend/src/components/intComponent/index.tsx | 2 +- src/frontend/src/contexts/tabsContext.tsx | 8 ++++---- src/frontend/src/modals/EditNodeModal/index.tsx | 2 +- .../FlowPage/components/nodeToolbarComponent/index.tsx | 4 ++-- src/frontend/src/pages/FlowPage/index.tsx | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/frontend/src/components/intComponent/index.tsx b/src/frontend/src/components/intComponent/index.tsx index e643eb5e9..00a4bf606 100644 --- a/src/frontend/src/components/intComponent/index.tsx +++ b/src/frontend/src/components/intComponent/index.tsx @@ -34,7 +34,7 @@ export default function IntComponent({ if (disableCopyPaste) setDisableCopyPaste(false); }} onKeyDown={(event) => { - console.log(event); + // console.log(event); if ( event.key !== "Backspace" && event.key !== "Enter" && diff --git a/src/frontend/src/contexts/tabsContext.tsx b/src/frontend/src/contexts/tabsContext.tsx index 9ef27b203..800027ede 100644 --- a/src/frontend/src/contexts/tabsContext.tsx +++ b/src/frontend/src/contexts/tabsContext.tsx @@ -69,12 +69,12 @@ 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); + // 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); + // console.log(node.data.node.template[key].type); if (node.data.node.template[key].type === "file") { - console.log(node.data.node.template[key]); + // console.log(node.data.node.template[key]); node.data.node.template[key].content = null; node.data.node.template[key].value = ""; } @@ -139,7 +139,7 @@ export function TabsProvider({ children }: { children: ReactNode }) { useEffect(() => { //save tabs locally - console.log(id); + // console.log(id); save(); }, [flows, id, tabIndex, newNodeId]); diff --git a/src/frontend/src/modals/EditNodeModal/index.tsx b/src/frontend/src/modals/EditNodeModal/index.tsx index f6f4d9111..4c9422afb 100644 --- a/src/frontend/src/modals/EditNodeModal/index.tsx +++ b/src/frontend/src/modals/EditNodeModal/index.tsx @@ -87,7 +87,7 @@ export default function EditNodeModal({ data }: { data: NodeDataType }) { setNodeValue(!nodeValue); } - console.log(data.node.template); + // console.log(data.node.template); return ( diff --git a/src/frontend/src/pages/FlowPage/components/nodeToolbarComponent/index.tsx b/src/frontend/src/pages/FlowPage/components/nodeToolbarComponent/index.tsx index 068bdf27f..4bceafffd 100644 --- a/src/frontend/src/pages/FlowPage/components/nodeToolbarComponent/index.tsx +++ b/src/frontend/src/pages/FlowPage/components/nodeToolbarComponent/index.tsx @@ -61,7 +61,7 @@ const NodeToolbarComponent = (props) => { )} onClick={(event) => { event.preventDefault(); - console.log(reactFlowInstance.getNode(props.data.id)); + // console.log(reactFlowInstance.getNode(props.data.id)); paste( { nodes: [reactFlowInstance.getNode(props.data.id)], @@ -94,7 +94,7 @@ const NodeToolbarComponent = (props) => { )} - {/* + {/*