🔧 fix(tabsContext.tsx): remove console.log statements for cleaner code

🔧 fix(nodeToolbarComponent/index.tsx): remove console.log statement for cleaner code
🔧 fix(utils.ts): remove console.log statement for cleaner code
This commit is contained in:
Lucas Oliveira 2023-06-28 11:07:49 -03:00
commit 9cb85a0c21
3 changed files with 0 additions and 5 deletions

View file

@ -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 = "";
}

View file

@ -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)],

View file

@ -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) {