diff --git a/src/frontend/src/contexts/tabsContext.tsx b/src/frontend/src/contexts/tabsContext.tsx index 09eefd69c..e9ef6e415 100644 --- a/src/frontend/src/contexts/tabsContext.tsx +++ b/src/frontend/src/contexts/tabsContext.tsx @@ -346,7 +346,6 @@ export function TabsProvider({ children }: { children: ReactNode }) { */ function removeFlow(id: string) { const index = flows.findIndex((flow) => flow.id === id); - console.log(index); if (index >= 0) { deleteFlowFromDatabase(id).then(() => { setFlows(flows.filter((flow) => flow.id !== id)); diff --git a/src/frontend/src/contexts/undoRedoContext.tsx b/src/frontend/src/contexts/undoRedoContext.tsx index eed8eb870..b0f8ca6b9 100644 --- a/src/frontend/src/contexts/undoRedoContext.tsx +++ b/src/frontend/src/contexts/undoRedoContext.tsx @@ -66,8 +66,6 @@ export function UndoRedoProvider({ children }) { const takeSnapshot = useCallback(() => { // push the current graph to the past state - console.log(past); - console.log(tabIndex); setPast((old) => { let newPast = cloneDeep(old); newPast[tabIndex] = old[tabIndex].slice( diff --git a/src/frontend/src/pages/FlowPage/components/PageComponent/index.tsx b/src/frontend/src/pages/FlowPage/components/PageComponent/index.tsx index b62cca5af..d901bedfe 100644 --- a/src/frontend/src/pages/FlowPage/components/PageComponent/index.tsx +++ b/src/frontend/src/pages/FlowPage/components/PageComponent/index.tsx @@ -69,7 +69,6 @@ export default function Page({ flow }: { flow: FlowType }) { !disableCopyPaste ) { event.preventDefault(); - console.log(_.cloneDeep(lastSelection)); setLastCopiedSelection(_.cloneDeep(lastSelection)); } if ( @@ -371,6 +370,9 @@ export default function Page({ flow }: { flow: FlowType }) { onPaneMouseLeave={() => { setDisableCopyPaste(true); }} + onPaneMouseEnter={()=>{ + setDisableCopyPaste(false); + }} onNodesChange={onNodesChangeMod} onEdgesChange={onEdgesChangeMod} onConnect={onConnect}