Skip to content

Commit

Permalink
don't fail icon check if it's not there (allows delete of missing con…
Browse files Browse the repository at this point in the history
…fig node)
  • Loading branch information
Dave Conway-Jones committed Jan 19, 2018
1 parent 2700f8c commit ac31438
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion editor/js/ui/editor.js
Expand Up @@ -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];
Expand Down

0 comments on commit ac31438

Please sign in to comment.