瀏覽代碼

Operations with no arguments can now be added to the recipe without causing errors

n1474335 8 年之前
父節點
當前提交
e0eb972a54
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/web/App.js

+ 1 - 0
src/web/App.js

@@ -482,6 +482,7 @@ App.prototype.setRecipeConfig = function(recipeConfig) {
         // Populate arguments
         const args = item.querySelectorAll(".arg");
         for (let j = 0; j < args.length; j++) {
+            if (recipeConfig[i].args[j] === undefined) continue;
             if (args[j].getAttribute("type") === "checkbox") {
                 // checkbox
                 args[j].checked = recipeConfig[i].args[j];