From ac3143811f163226e39f4e6e7e1799408d677cc7 Mon Sep 17 00:00:00 2001 From: Dave Conway-Jones Date: Fri, 19 Jan 2018 22:48:03 +0000 Subject: [PATCH] don't fail icon check if it's not there (allows delete of missing config node) --- editor/js/ui/editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/js/ui/editor.js b/editor/js/ui/editor.js index 8997d0839f..a1a1cd4eab 100644 --- a/editor/js/ui/editor.js +++ b/editor/js/ui/editor.js @@ -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];