fix thinko - inverted logic

This commit is contained in:
Ludovic Anterieur
2024-06-29 13:12:00 +02:00
parent a93f09c079
commit 1afb8f41c1
+1 -1
View File
@@ -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;
}