diff --git a/skyvern-frontend/src/routes/workflows/editor/workflowEditorUtils.ts b/skyvern-frontend/src/routes/workflows/editor/workflowEditorUtils.ts index a294c848..eddde9d3 100644 --- a/skyvern-frontend/src/routes/workflows/editor/workflowEditorUtils.ts +++ b/skyvern-frontend/src/routes/workflows/editor/workflowEditorUtils.ts @@ -543,10 +543,6 @@ function getElements(blocks: Array): { nodes.push(nodeAdderNode(adderNodeId)); edges.push(defaultEdge(startNodeId, adderNodeId)); } else { - const firstNode = data.find( - (d) => d.previous === null && d.parentId === null, - ); - edges.push(edgeWithAddButton(startNodeId, firstNode!.id)); const lastNode = data.find((d) => d.next === null && d.parentId === null)!; edges.push(defaultEdge(lastNode.id, adderNodeId)); nodes.push(nodeAdderNode(adderNodeId));