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

This commit is contained in:
Shuchang Zheng
2025-01-27 22:57:59 +08:00
committed by GitHub
parent a5f2b68b4d
commit 2100174a1b
2 changed files with 1 additions and 2 deletions

View File

@@ -1110,7 +1110,6 @@ function getWorkflowBlocksUtil(
block_type: "for_loop", block_type: "for_loop",
label: node.data.label, label: node.data.label,
continue_on_failure: node.data.continueOnFailure, continue_on_failure: node.data.continueOnFailure,
loop_over_parameter_key: node.data.loopValue,
loop_blocks: getOrderedChildrenBlocks(nodes, edges, node.id), loop_blocks: getOrderedChildrenBlocks(nodes, edges, node.id),
loop_variable_reference: node.data.loopVariableReference, loop_variable_reference: node.data.loopVariableReference,
}, },

View File

@@ -262,7 +262,7 @@ export type FileUrlParserBlockYAML = BlockYAMLBase & {
export type ForLoopBlockYAML = BlockYAMLBase & { export type ForLoopBlockYAML = BlockYAMLBase & {
block_type: "for_loop"; block_type: "for_loop";
loop_over_parameter_key: string; loop_over_parameter_key?: string;
loop_blocks: Array<BlockYAML>; loop_blocks: Array<BlockYAML>;
loop_variable_reference: string | null; loop_variable_reference: string | null;
}; };