🔇 chore(frontend): comment out console.log statements

The console.log statements were commented out in the tabsContext.tsx, EditNodeModal/index.tsx, NodeToolbarComponent/index.tsx, and FlowPage/index.tsx files to remove unnecessary logging in the console.
This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-06-12 09:33:03 -03:00
commit 25f22ae88c
4 changed files with 8 additions and 8 deletions

View file

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

View file

@ -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}>

View file

@ -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)],
@ -94,7 +94,7 @@ const NodeToolbarComponent = (props) => {
</ShadTooltip> </ShadTooltip>
)} )}
{/* {/*
<Menu as="div" className="relative inline-block text-left z-100"> <Menu as="div" className="relative inline-block text-left z-100">
<button className="hover:dark:hover:bg-[#242f47] text-gray-700 transition-all duration-500 ease-in-out dark:bg-gray-800 dark:text-gray-300 shadow-md relative -ml-px inline-flex items-center bg-white px-2 py-2 ring-1 ring-inset ring-gray-300 hover:bg-gray-50 focus:z-10 rounded-r-md"> <button className="hover:dark:hover:bg-[#242f47] text-gray-700 transition-all duration-500 ease-in-out dark:bg-gray-800 dark:text-gray-300 shadow-md relative -ml-px inline-flex items-center bg-white px-2 py-2 ring-1 ring-inset ring-gray-300 hover:bg-gray-50 focus:z-10 rounded-r-md">
<div> <div>

View file

@ -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 (