Skip to content

Automate browser based workflows with AI

dont generate loop-over value when saving the workflow anymore (#1659)

Shuchang Zheng2100174a1bba
diff --git a/skyvern-frontend/src/routes/workflows/editor/workflowEditorUtils.ts b/skyvern-frontend/src/routes/workflows/editor/workflowEditorUtils.ts
index 2e41d1b4b..ca943e412 100644
--- a/skyvern-frontend/src/routes/workflows/editor/workflowEditorUtils.ts
+++ b/skyvern-frontend/src/routes/workflows/editor/workflowEditorUtils.ts
@@ -1110,7 +1110,6 @@ function getWorkflowBlocksUtil(
block_type: "for_loop",
label: node.data.label,
continue_on_failure: node.data.continueOnFailure,
- loop_over_parameter_key: node.data.loopValue,
loop_blocks: getOrderedChildrenBlocks(nodes, edges, node.id),
loop_variable_reference: node.data.loopVariableReference,
},
diff --git a/skyvern-frontend/src/routes/workflows/types/workflowYamlTypes.ts b/skyvern-frontend/src/routes/workflows/types/workflowYamlTypes.ts
index 896c5bf58..e6c1d54f4 100644
--- a/skyvern-frontend/src/routes/workflows/types/workflowYamlTypes.ts
+++ b/skyvern-frontend/src/routes/workflows/types/workflowYamlTypes.ts
@@ -262,7 +262,7 @@ export type FileUrlParserBlockYAML = BlockYAMLBase & {
export type ForLoopBlockYAML = BlockYAMLBase & {
block_type: "for_loop";
- loop_over_parameter_key: string;
+ loop_over_parameter_key?: string;
loop_blocks: Array<BlockYAML>;
loop_variable_reference: string | null;
};