Subflow status node must pass status to parent flow

Fixes #2087
This commit is contained in:
Nick O'Leary 2019-03-13 13:13:31 +00:00
parent faae184f1c
commit c9ff05ba80
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9
1 changed files with 2 additions and 1 deletions

View File

@ -165,7 +165,8 @@ class Subflow extends Flow {
this.node = new Node(subflowInstanceConfig);
this.node.on("input", function(msg) { this.send(msg);});
this.node.on("close", function() { this.status({}); })
this.node.status = status => this.parent.handleStatus(this.node,status);
this.node._updateWires = this.node.updateWires;
this.node.updateWires = function(newWires) {