🔇 chore(frontend): comment out console.log statements
The console.log statements were commented out in the following files: - src/frontend/src/components/intComponent/index.tsx - src/frontend/src/contexts/tabsContext.tsx - src/frontend/src/modals/EditNodeModal/index.tsx - src/frontend/src/pages/FlowPage/components/nodeToolbarComponent/index.tsx - src/frontend/src/pages/FlowPage/index.tsx The console.log statements were not necessary and were removed to reduce noise in the console.
This commit is contained in:
parent
a65a88ca45
commit
5fe4ac6ffa
5 changed files with 9 additions and 9 deletions
|
|
@ -34,7 +34,7 @@ export default function IntComponent({
|
||||||
if (disableCopyPaste) setDisableCopyPaste(false);
|
if (disableCopyPaste) setDisableCopyPaste(false);
|
||||||
}}
|
}}
|
||||||
onKeyDown={(event) => {
|
onKeyDown={(event) => {
|
||||||
console.log(event);
|
// console.log(event);
|
||||||
if (
|
if (
|
||||||
event.key !== "Backspace" &&
|
event.key !== "Backspace" &&
|
||||||
event.key !== "Enter" &&
|
event.key !== "Enter" &&
|
||||||
|
|
|
||||||
|
|
@ -69,12 +69,12 @@ 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);
|
// 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);
|
// 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]);
|
// 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 = "";
|
||||||
}
|
}
|
||||||
|
|
@ -139,7 +139,7 @@ export function TabsProvider({ children }: { children: ReactNode }) {
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
//save tabs locally
|
//save tabs locally
|
||||||
console.log(id);
|
// console.log(id);
|
||||||
save();
|
save();
|
||||||
}, [flows, id, tabIndex, newNodeId]);
|
}, [flows, id, tabIndex, newNodeId]);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -87,7 +87,7 @@ export default function EditNodeModal({ data }: { data: NodeDataType }) {
|
||||||
setNodeValue(!nodeValue);
|
setNodeValue(!nodeValue);
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(data.node.template);
|
// console.log(data.node.template);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Dialog open={true} onOpenChange={setModalOpen}>
|
<Dialog open={true} onOpenChange={setModalOpen}>
|
||||||
|
|
|
||||||
|
|
@ -61,7 +61,7 @@ const NodeToolbarComponent = (props) => {
|
||||||
)}
|
)}
|
||||||
onClick={(event) => {
|
onClick={(event) => {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
console.log(reactFlowInstance.getNode(props.data.id));
|
// console.log(reactFlowInstance.getNode(props.data.id));
|
||||||
paste(
|
paste(
|
||||||
{
|
{
|
||||||
nodes: [reactFlowInstance.getNode(props.data.id)],
|
nodes: [reactFlowInstance.getNode(props.data.id)],
|
||||||
|
|
|
||||||
|
|
@ -68,7 +68,7 @@ export default function FlowPage({ flow }: { flow: FlowType }) {
|
||||||
!disableCopyPaste
|
!disableCopyPaste
|
||||||
) {
|
) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
console.log(_.cloneDeep(lastSelection));
|
// console.log(_.cloneDeep(lastSelection));
|
||||||
setLastCopiedSelection(_.cloneDeep(lastSelection));
|
setLastCopiedSelection(_.cloneDeep(lastSelection));
|
||||||
}
|
}
|
||||||
if (
|
if (
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue