From d054b28e61d278cfc17907612983ae360a6a7693 Mon Sep 17 00:00:00 2001 From: MaraScott Date: Wed, 22 May 2024 17:49:20 +0200 Subject: [PATCH] hotfix label --- web/lib/litegraph.core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/lib/litegraph.core.js b/web/lib/litegraph.core.js index 2b7b069bf..6b54cea32 100644 --- a/web/lib/litegraph.core.js +++ b/web/lib/litegraph.core.js @@ -3470,7 +3470,7 @@ */ LGraphNode.prototype.addInput = function(name, type, extra_info) { type = type || 0; - var input = { name: name, label: extra_info.label, type: type, link: null }; + var input = { name: name, label: extra_info?.label || name, type: type, link: null }; if (extra_info) { for (var i in extra_info) { input[i] = extra_info[i];