diff --git a/web/lib/litegraph.core.js b/web/lib/litegraph.core.js index fc5340f89..4c63a9b2d 100644 --- a/web/lib/litegraph.core.js +++ b/web/lib/litegraph.core.js @@ -4309,6 +4309,15 @@ changed = true; } break; + + // if it is a flow-control connection, and the original output link is not null, discounnect + case "FLOW": + console.log("[Link Connect] remove output links of 'FLOW' connection."); + this.graph.beforeChange(); + this.disconnectOutput(slot); + changed = true; + break; + default: break; }