mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
don't fail icon check if it's not there (allows delete of missing config node)
This commit is contained in:
parent
2700f8cdd2
commit
ac3143811f
@ -170,7 +170,7 @@ RED.editor = (function() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!node._def.defaults.hasOwnProperty("icon") && node.icon) {
|
if (node._def.hasOwnProperty("defaults") && !node._def.defaults.hasOwnProperty("icon") && node.icon) {
|
||||||
var iconPath = RED.utils.separateIconPath(node.icon);
|
var iconPath = RED.utils.separateIconPath(node.icon);
|
||||||
var iconSets = RED.nodes.getIconSets();
|
var iconSets = RED.nodes.getIconSets();
|
||||||
var iconFileList = iconSets[iconPath.module];
|
var iconFileList = iconSets[iconPath.module];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user