Skip to content

Automate browser based workflows with AI

Update checks on save for new loop block field (#1486)

Shuchang Zheng2514caa52f86
diff --git a/skyvern-frontend/src/routes/workflows/editor/workflowEditorUtils.ts b/skyvern-frontend/src/routes/workflows/editor/workflowEditorUtils.ts
index 1de638246..abc857513 100644
--- a/skyvern-frontend/src/routes/workflows/editor/workflowEditorUtils.ts
+++ b/skyvern-frontend/src/routes/workflows/editor/workflowEditorUtils.ts
@@ -1691,11 +1691,11 @@ function getWorkflowErrors(nodes: Array<AppNode>): Array<string> {
// check loop node parameters
const loopNodes: Array<LoopNode> = nodes.filter(isLoopNode);
const emptyLoopNodes = loopNodes.filter(
- (node: LoopNode) => node.data.loopValue === "",
+ (node: LoopNode) => node.data.loopVariableReference === "",
);
if (emptyLoopNodes.length > 0) {
emptyLoopNodes.forEach((node) => {
- errors.push(`${node.data.label}: Loop value parameter is required.`);
+ errors.push(`${node.data.label}: Loop value is required.`);
});
}