From 5dcda71011870278c35d92ff77a677ed2e538f2d Mon Sep 17 00:00:00 2001 From: kijai <40791699+kijai@users.noreply.github.com> Date: Tue, 13 May 2025 17:10:22 +0300 Subject: [PATCH] bugfix on deleting node connected to Set node --- web/js/setgetnodes.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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);