mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Fix editor-client package.json
The main entry pointed to non-existant entry. Also fixed error when loading nodes lazily
This commit is contained in:
parent
f1e7ec0c6b
commit
711ec39327
@ -14,5 +14,5 @@
|
|||||||
"name": "Dave Conway-Jones"
|
"name": "Dave Conway-Jones"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"main": "./lib/index.js"
|
"main": "./index.js"
|
||||||
}
|
}
|
||||||
|
@ -233,7 +233,7 @@ RED.sidebar.help = (function() {
|
|||||||
var div = $('<div>',{class:"red-ui-node-list-item"});
|
var div = $('<div>',{class:"red-ui-node-list-item"});
|
||||||
var icon = RED.utils.createNodeIcon(n).appendTo(div);
|
var icon = RED.utils.createNodeIcon(n).appendTo(div);
|
||||||
var label = n.name;
|
var label = n.name;
|
||||||
if (!label && n._def.paletteLabel) {
|
if (!label && n._def && n._def.paletteLabel) {
|
||||||
try {
|
try {
|
||||||
label = (typeof n._def.paletteLabel === "function" ? n._def.paletteLabel.call(n._def) : n._def.paletteLabel)||"";
|
label = (typeof n._def.paletteLabel === "function" ? n._def.paletteLabel.call(n._def) : n._def.paletteLabel)||"";
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
Loading…
Reference in New Issue
Block a user