From e0eb972a54e25caccdcdf14a7cb780c8195f4fd8 Mon Sep 17 00:00:00 2001 From: n1474335 Date: Fri, 18 Aug 2017 16:12:49 +0000 Subject: [PATCH] Operations with no arguments can now be added to the recipe without causing errors --- src/web/App.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/web/App.js b/src/web/App.js index d6287568..8c209814 100755 --- a/src/web/App.js +++ b/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];