From 33bf54f5e13e858c4e4ac8b2fafc989b3e1fea2d Mon Sep 17 00:00:00 2001 From: ljleb Date: Fri, 23 May 2025 13:36:57 -0400 Subject: [PATCH] test for null and remove logging --- js/varargs.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/varargs.js b/js/varargs.js index c28663a..748afb6 100644 --- a/js/varargs.js +++ b/js/varargs.js @@ -144,15 +144,15 @@ app.registerExtension({ for (const iv of (node.inputs || []).slice()) { const iv_idx = node.inputs.indexOf(iv); if (iv.type === "MECHA_RECIPE" || iv.type === "MECHA_RECIPE_LIST" || iv.type === "MECHA_HYPER") { - console.log(node.type, iv.name); for (const iv2 of node.inputs.slice()) { if ( iv.name.split(" ")[0] === iv2.name.split(" ")[0] && iv !== iv2 && (customDefInputNames[node.type] || {})[iv2.name.split(" ")[0]] === iv2.name ) { - console.log("removing", node, iv); - iv2.link = iv.link; + if (iv.link !== null) { + iv2.link = iv.link; + } node.inputs.splice(iv_idx, 1); } }