mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02: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 iconSets = RED.nodes.getIconSets();
|
||||
var iconFileList = iconSets[iconPath.module];
|
||||
|
Loading…
Reference in New Issue
Block a user