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

Dynamic node add not listing added types properly

This commit is contained in:
Nick O'Leary 2014-08-18 21:12:15 +01:00
parent 8ddfa9eb29
commit 4d6846047f

View File

@ -71,8 +71,10 @@ function createServer(_server,_settings) {
redNodes.addNode(node).then(function(info) {
comms.publish("node/added",info,false);
util.log("[red] Added node types:");
for (var i=0;i<info.types.length;i++) {
util.log("[red] - "+info.types[i]);
for (var j=0;j<info.length;j++) {
for (var i=0;i<info[j].types.length;i++) {
util.log("[red] - "+info[j].types[i]);
}
}
res.json(info);
}).otherwise(function(err) {