Jelajahi Sumber

fix: Missing type property for forLoop in visual UI parser

Lucas de Souza 2 tahun lalu
induk
melakukan
22b6804146
1 mengubah file dengan 8 tambahan dan 1 penghapusan
  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,
+  };
 }
 
 /**