getNodeIcon should handle subflow types properly

This commit is contained in:
Nick O'Leary 2017-08-02 21:55:25 +01:00
parent 7ec8f0d26b
commit 67dc848b2d
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9
1 changed files with 2 additions and 0 deletions

View File

@ -683,6 +683,8 @@ RED.utils = (function() {
return "icons/node-red/subflow.png"
} else if (node && node.type === 'unknown') {
return "icons/node-red/alert.png"
} else if (node && node.type === 'subflow') {
return "icons/node-red/subflow.png"
}
var icon_url;
if (typeof def.icon === "function") {