浏览代码

Merge branch 'j433866-fork-fix'

n1474335 6 年之前
父节点
当前提交
360effb839
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      src/core/operations/Fork.mjs
  2. 1 1
      src/core/operations/Subsection.mjs

+ 1 - 1
src/core/operations/Fork.mjs

@@ -89,7 +89,7 @@ class Fork extends Operation {
         // Run recipe over each tranche
         for (i = 0; i < inputs.length; i++) {
             // Baseline ing values for each tranche so that registers are reset
-            subOpList.forEach((op, i) => {
+            recipe.opList.forEach((op, i) => {
                 op.ingValues = JSON.parse(JSON.stringify(ingValues[i]));
             });
 

+ 1 - 1
src/core/operations/Subsection.mjs

@@ -116,7 +116,7 @@ class Subsection extends Operation {
                 }
 
                 // Baseline ing values for each tranche so that registers are reset
-                subOpList.forEach((op, i) => {
+                recipe.opList.forEach((op, i) => {
                     op.ingValues = JSON.parse(JSON.stringify(ingValues[i]));
                 });