1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

getDefaultNodeIcon should handle subflow instance nodes

Fixes #1635
This commit is contained in:
Nick O'Leary 2018-02-15 15:33:19 +00:00
parent 50ae815ceb
commit f6f1436123
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -721,7 +721,12 @@ RED.utils = (function() {
var iconPath = separateIconPath(icon_url);
if (!iconPath.module) {
iconPath.module = def.set.module;
if (def.set) {
iconPath.module = def.set.module;
} else {
// Handle subflow instance nodes that don't have def.set
iconPath.module = "node-red";
}
}
return iconPath;
}