🔧 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:
parent
da5aa1e05b
commit
9cb85a0c21
3 changed files with 0 additions and 5 deletions
|
|
@ -87,12 +87,9 @@ export function TabsProvider({ children }: { children: ReactNode }) {
|
||||||
Saveflows.forEach((flow) => {
|
Saveflows.forEach((flow) => {
|
||||||
if (flow.data && flow.data?.nodes)
|
if (flow.data && flow.data?.nodes)
|
||||||
flow.data?.nodes.forEach((node) => {
|
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
|
//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) => {
|
Object.keys(node.data.node.template).forEach((key) => {
|
||||||
// console.log(node.data.node.template[key].type);
|
|
||||||
if (node.data.node.template[key].type === "file") {
|
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].content = null;
|
||||||
node.data.node.template[key].value = "";
|
node.data.node.template[key].value = "";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -49,7 +49,6 @@ const NodeToolbarComponent = (props) => {
|
||||||
)}
|
)}
|
||||||
onClick={(event) => {
|
onClick={(event) => {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
// console.log(reactFlowInstance.getNode(props.data.id));
|
|
||||||
paste(
|
paste(
|
||||||
{
|
{
|
||||||
nodes: [reactFlowInstance.getNode(props.data.id)],
|
nodes: [reactFlowInstance.getNode(props.data.id)],
|
||||||
|
|
|
||||||
|
|
@ -656,7 +656,6 @@ export function isValidConnection(
|
||||||
|
|
||||||
export function removeApiKeys(flow: FlowType): FlowType {
|
export function removeApiKeys(flow: FlowType): FlowType {
|
||||||
let cleanFLow = _.cloneDeep(flow);
|
let cleanFLow = _.cloneDeep(flow);
|
||||||
console.log(cleanFLow);
|
|
||||||
cleanFLow.data.nodes.forEach((node) => {
|
cleanFLow.data.nodes.forEach((node) => {
|
||||||
for (const key in node.data.node.template) {
|
for (const key in node.data.node.template) {
|
||||||
if (node.data.node.template[key].password) {
|
if (node.data.node.template[key].password) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue