diff --git a/client/src/components/ReactFlowDrawer.tsx b/client/src/components/ReactFlowDrawer.tsx index 30a0269..b46e7da 100644 --- a/client/src/components/ReactFlowDrawer.tsx +++ b/client/src/components/ReactFlowDrawer.tsx @@ -190,7 +190,7 @@ export default function ReactFlowDrawer({ showDrawer }: ReactFlowDrawerProps) { const existingNodes = nodes .filter((node) => node.id !== selectedHandleId?.split("-")[0]) .filter((node) => { - if (!selectedHandleId) return false; + if (!selectedHandleId || node.type === "startNode") return false; const [sourceNodeId, sourceHandleId] = selectedHandleId.split("-"); return !edges.some( (edge) =>