diff --git a/public/red/ui/tab-info.js b/public/red/ui/tab-info.js
index ad009d4e9..af34ffb73 100644
--- a/public/red/ui/tab-info.js
+++ b/public/red/ui/tab-info.js
@@ -61,20 +61,25 @@ RED.sidebar.info = (function() {
//table += '
Node |
';
if (node.type.indexOf("subflow") === 0) {
- table += "Type | "+(RED.nodes.subflow(node.type.split(":")[1]).name||node.type)+" |
";
- table += "ID | "+node.id+" |
";
var userCount = 0;
RED.nodes.eachNode(function(n) {
- console.log(n);
if (n.type === node.type) {
userCount++;
}
});
node.name = node.name || "";
- table += "name | "+node.name+" |
";
- table += "inputs | "+node.inputs+" |
";
- table += "outputs | "+node.outputs+" |
";
- table += "instances | "+userCount+" |
";
+ if (node.type !== "subflow") {
+ table += "Type | "+(RED.nodes.subflow(node.type.split(":")[1]).name||node.type)+" |
";
+ table += "ID | "+node.id+" |
";
+ table += "name | "+node.name+" |
";
+ table += "inputs | "+node.inputs+" |
";
+ table += "outputs | "+node.outputs+" |
";
+ table += "instances | "+userCount+" |
";
+ } else {
+ table += "Type | "+node.type+" |
";
+ table += "ID | "+node.id+" |
";
+ table += "name | "+node.name+" |
";
+ }
}
else if (node._def) {
if (node.type !== "comment") {