diff --git a/src/frontend/src/CustomNodes/GenericNode/index.tsx b/src/frontend/src/CustomNodes/GenericNode/index.tsx index 86eaf299d..168069f55 100644 --- a/src/frontend/src/CustomNodes/GenericNode/index.tsx +++ b/src/frontend/src/CustomNodes/GenericNode/index.tsx @@ -49,7 +49,6 @@ export default function GenericNode({ const [validationStatus, setValidationStatus] = useState(null); // State for outline color const [isValid, setIsValid] = useState(false); - const { save } = useContext(TabsContext); const { reactFlowInstance } = useContext(typesContext); const [params, setParams] = useState([]); @@ -57,7 +56,7 @@ export default function GenericNode({ if (reactFlowInstance) { setParams(Object.values(reactFlowInstance.toObject())); } - }, [save]); + }, []); const validateNode = useCallback( debounce(async () => { diff --git a/src/frontend/src/pages/FlowPage/components/PageComponent/index.tsx b/src/frontend/src/pages/FlowPage/components/PageComponent/index.tsx index 600a54f12..ca52da5f4 100644 --- a/src/frontend/src/pages/FlowPage/components/PageComponent/index.tsx +++ b/src/frontend/src/pages/FlowPage/components/PageComponent/index.tsx @@ -308,10 +308,10 @@ export default function Page({ flow }: { flow: FlowType }) { const { setDisableCopyPaste } = useContext(TabsContext); return ( -