mirror of https://github.com/node-red/node-red.git
Add default name to switch node (for when name not specified - to be more consistent with other nodes)
parent
873974478a
commit
0a78838c71
|
@ -60,7 +60,7 @@
|
|||
outputs: 1,
|
||||
icon: "switch.png",
|
||||
label: function() {
|
||||
return this.name;
|
||||
return this.name||"switch";
|
||||
},
|
||||
oneditprepare: function() {
|
||||
|
||||
|
|
Loading…
Reference in New Issue