From 1afb8f41c1d3f59b2cbb71e9045ab201d3dcc388 Mon Sep 17 00:00:00 2001 From: Ludovic Anterieur Date: Sat, 29 Jun 2024 13:12:00 +0200 Subject: [PATCH] fix thinko - inverted logic --- js/paramVisibility.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/paramVisibility.js b/js/paramVisibility.js index 43dbc98..fbdbca8 100644 --- a/js/paramVisibility.js +++ b/js/paramVisibility.js @@ -16,7 +16,7 @@ function handleParamVisibility(node, countValue) { origProps[pname] = { origType: paramWidget.type, origComputeSize: paramWidget.computeSize }; } - if (i <= countValue || node.inputs?.some?.(input => input.name === pname)) { + if (i <= countValue && !node.inputs?.some?.(input => input.name === pname)) { paramWidget.type = origProps[pname].origType; paramWidget.computeSize = origProps[pname].origComputeSize; }