diff --git a/web/js/setgetnodes.js b/web/js/setgetnodes.js index a8f8b8e..2a90dcc 100644 --- a/web/js/setgetnodes.js +++ b/web/js/setgetnodes.js @@ -449,7 +449,7 @@ app.registerExtension({ if (this.outputs[0].type !== '*' && this.outputs[0].links) { this.outputs[0].links.filter(linkId => { const link = node.graph.links[linkId]; - return link && (link.type !== this.outputs[0].type && link.type !== '*'); + return link && (!link.type.split(",").includes(this.outputs[0].type) && link.type !== '*'); }).forEach(linkId => { node.graph.removeLink(linkId); });