diff --git a/web/js/setgetnodes.js b/web/js/setgetnodes.js index 2a90dcc..c453188 100644 --- a/web/js/setgetnodes.js +++ b/web/js/setgetnodes.js @@ -96,10 +96,11 @@ app.registerExtension({ } } if (slotType == 2 && !isChangeConnect) { - this.outputs[slot].type = '*'; - this.outputs[slot].name = '*'; - - } + if (this.outputs && this.outputs[slot]) { + this.outputs[slot].type = '*'; + this.outputs[slot].name = '*'; + } + } //On Connect if (link_info && node.graph && slotType == 1 && isChangeConnect) { const fromNode = node.graph._nodes.find((otherNode) => otherNode.id == link_info.origin_id);