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:
parent
8ddfa9eb29
commit
4d6846047f
@ -71,8 +71,10 @@ function createServer(_server,_settings) {
|
|||||||
redNodes.addNode(node).then(function(info) {
|
redNodes.addNode(node).then(function(info) {
|
||||||
comms.publish("node/added",info,false);
|
comms.publish("node/added",info,false);
|
||||||
util.log("[red] Added node types:");
|
util.log("[red] Added node types:");
|
||||||
for (var i=0;i<info.types.length;i++) {
|
for (var j=0;j<info.length;j++) {
|
||||||
util.log("[red] - "+info.types[i]);
|
for (var i=0;i<info[j].types.length;i++) {
|
||||||
|
util.log("[red] - "+info[j].types[i]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
res.json(info);
|
res.json(info);
|
||||||
}).otherwise(function(err) {
|
}).otherwise(function(err) {
|
||||||
|
Loading…
Reference in New Issue
Block a user