mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Add default name to switch node (for when name not specified - to be more consistent with other nodes)
This commit is contained in:
@@ -60,7 +60,7 @@
|
||||
outputs: 1,
|
||||
icon: "switch.png",
|
||||
label: function() {
|
||||
return this.name;
|
||||
return this.name||"switch";
|
||||
},
|
||||
oneditprepare: function() {
|
||||
|
||||
|
Reference in New Issue
Block a user