From 2514caa52f8637d6a652aad9c5a659fb069dc8d3 Mon Sep 17 00:00:00 2001 From: Shuchang Zheng Date: Sat, 4 Jan 2025 03:37:03 -0800 Subject: [PATCH] Update checks on save for new loop block field (#1486) --- .../src/routes/workflows/editor/workflowEditorUtils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/skyvern-frontend/src/routes/workflows/editor/workflowEditorUtils.ts b/skyvern-frontend/src/routes/workflows/editor/workflowEditorUtils.ts index 1de63824..abc85751 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): Array { // check loop node parameters const loopNodes: Array = 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.`); }); }