Work around the weird treatment of the primary input (#1575)

* Work around the weird treatment of the primary input

* take2
This commit is contained in:
0HyperCube
2024-01-14 00:35:45 +00:00
committed by GitHub
parent e242ce26a0
commit c777d4d430
2 changed files with 2 additions and 12 deletions

View File

@@ -921,7 +921,7 @@
data-datatype={parameter.dataType}
style:--data-color={`var(--color-data-${parameter.dataType})`}
style:--data-color-dim={`var(--color-data-${parameter.dataType}-dim)`}
bind:this={inputs[nodeIndex][index + 1]}
bind:this={inputs[nodeIndex][index + (node.primaryInput ? 1 : 0)]}
>
<title>{`${dataTypeTooltip(parameter)}\nConnected to ${parameter.connected || "nothing"}`}</title>
{#if parameter.connected}