diff --git a/src/frontend/src/CustomNodes/GenericNode/index.tsx b/src/frontend/src/CustomNodes/GenericNode/index.tsx
index 9407bc1cd..cc6738dcb 100644
--- a/src/frontend/src/CustomNodes/GenericNode/index.tsx
+++ b/src/frontend/src/CustomNodes/GenericNode/index.tsx
@@ -34,7 +34,6 @@ export default function GenericNode({
const { reactFlowInstance } = useContext(typesContext);
const [params, setParams] = useState([]);
- console.log();
useEffect(() => {
if (reactFlowInstance) {
@@ -53,15 +52,13 @@ export default function GenericNode({
body: JSON.stringify(reactFlowInstance.toObject()),
});
- console.log(response.status, response.body);
-
if (response.status === 200) {
setValidationStatus("success");
} else if (response.status === 500) {
setValidationStatus("error");
}
} catch (error) {
- console.error("Error validating node:", error);
+ // console.error("Error validating node:", error);
setValidationStatus("error");
}
}, 1000), // Adjust the debounce delay (500ms) as needed
diff --git a/src/frontend/src/pages/FlowPage/index.tsx b/src/frontend/src/pages/FlowPage/index.tsx
index 56a395acf..be168d6d4 100644
--- a/src/frontend/src/pages/FlowPage/index.tsx
+++ b/src/frontend/src/pages/FlowPage/index.tsx
@@ -158,7 +158,7 @@ export default function FlowPage({ flow }:{flow:FlowType}) {
const onDelete = (mynodes) => {
setEdges(
edges.filter(
- (ns) => !nodes.some((n) => ns.source === n.id || ns.target === n.id)
+ (ns) => !mynodes.some((n) => ns.source === n.id || ns.target === n.id)
)
);
};
@@ -208,6 +208,7 @@ export default function FlowPage({ flow }:{flow:FlowType}) {
onDragOver={onDragOver}
onDrop={onDrop}
onNodesDelete={onDelete}
+ selectNodesOnDrag={false}
>