fix #946 InversedSwitch(Any) was not append outputs after first connect (#956)

InversedSwitch(Any) not increasing number of outputs after connecting first output  (in )
# 953  #946
In the latest ComfyUI_frontend version, output is not appended as expected
This commit is contained in:
Jaquan
2025-04-12 19:01:00 +09:00
committed by GitHub
parent 0b1ac0f1c5
commit cd2696f6fd
+3
View File
@@ -403,6 +403,9 @@ app.registerExtension({
let slot_i = 1;
for (let i = 0; i < this.outputs.length; i++) {
this.outputs[i].name = `output${slot_i}`
if (this.outputs[i].slot_index === undefined) {
this.outputs[i].slot_index = i;
}
slot_i++;
}