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

This commit is contained in:
n1474335 2017-08-18 16:12:49 +00:00
parent 19c54a99cd
commit e0eb972a54

View file

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