Automate browser based workflows with AI
Python aiapiautomationbrowserbrowser-automationcomputergptllmplaywrightpowerautomatepuppeteerpythonrpaseleniumvisionworkflow
fix conditional serialization to drop stale targets for deleted downstream/branch blocks (#4282)
Celal Zamanoglu401af044b422
diff --git a/skyvern-frontend/src/routes/workflows/editor/workflowEditorUtils.ts b/skyvern-frontend/src/routes/workflows/editor/workflowEditorUtils.tsindex c220eb1f4..ad6934a0f 100644--- a/skyvern-frontend/src/routes/workflows/editor/workflowEditorUtils.ts+++ b/skyvern-frontend/src/routes/workflows/editor/workflowEditorUtils.ts@@ -775,10 +775,7 @@ function serializeConditionalBlock(nodes: Array<AppNode>,edges: Array<Edge>,): ConditionalBlockYAML {- const mergeLabel =- findConditionalMergeLabel(node, nodes, edges) ??- node.data.mergeLabel ??- null;+ const mergeLabel = findConditionalMergeLabel(node, nodes, edges) ?? null;const branchConditions = node.data.branches.map((branch) => {const orderedNodes = getConditionalBranchNodeSequence(@@ -787,11 +784,7 @@ function serializeConditionalBlock(nodes,edges,);- const nextBlockLabel =- orderedNodes[0]?.data.label ??- mergeLabel ??- branch.next_block_label ??- null;+ const nextBlockLabel = orderedNodes[0]?.data.label ?? mergeLabel ?? null;return {...branch,