mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-11-22 06:27:01 +08:00
hotfix label
This commit is contained in:
parent
e57444a5b5
commit
d054b28e61
@ -3470,7 +3470,7 @@
|
|||||||
*/
|
*/
|
||||||
LGraphNode.prototype.addInput = function(name, type, extra_info) {
|
LGraphNode.prototype.addInput = function(name, type, extra_info) {
|
||||||
type = type || 0;
|
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) {
|
if (extra_info) {
|
||||||
for (var i in extra_info) {
|
for (var i in extra_info) {
|
||||||
input[i] = extra_info[i];
|
input[i] = extra_info[i];
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user