Fix Loop block parameters (#1492)

This commit is contained in:
Shuchang Zheng
2025-01-05 20:47:48 -08:00
committed by GitHub
parent 466f20918b
commit a241b09701
2 changed files with 3 additions and 3 deletions

View File

@@ -368,14 +368,14 @@ function convertToNode(
const loopVariableReference =
block.loop_variable_reference !== null
? block.loop_variable_reference
: block.loop_over.key;
: block.loop_over?.key ?? "";
return {
...identifiers,
...common,
type: "loop",
data: {
...commonData,
loopValue: block.loop_over.key,
loopValue: block.loop_over?.key ?? "",
loopVariableReference: loopVariableReference,
},
};