浏览代码

fix: Missing type property for forLoop in visual UI parser

Lucas de Souza 2 年之前
父节点
当前提交
22b6804146
共有 1 个文件被更改,包括 8 次插入1 次删除
  1. 8 1
      js/util/parseFromVisual.js

+ 8 - 1
js/util/parseFromVisual.js

@@ -107,7 +107,14 @@ function forWalker (forLoop) {
     ? expressionWalker(forLoop.for_pass)
     : [];
   const commands = forLoop.commands.map(commandWalker);
-  return { var_attribution, var_initial, condition, step_expression, commands };
+  return {
+    type: "repeatNtimes",
+    var_attribution,
+    var_initial,
+    condition,
+    step_expression,
+    commands,
+  };
 }
 
 /**