1
0
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:
Dave Conway-Jones 2018-01-19 22:48:03 +00:00
parent 2700f8cdd2
commit ac3143811f
No known key found for this signature in database
GPG Key ID: 9E7F9C73F5168CD4

View File

@ -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];