Commit 1e74d7f2 by Marcus Efraimsson

handle new variables created not yet added

parent ce538007
...@@ -122,12 +122,13 @@ export class VariableSrv { ...@@ -122,12 +122,13 @@ export class VariableSrv {
} }
const g = this.createGraph(); const g = this.createGraph();
const promises = g const node = g.getNode(variable.name);
.getNode(variable.name) let promises = [];
.getOptimizedInputEdges() if (node) {
.map(e => { promises = node.getOptimizedInputEdges().map(e => {
return this.updateOptions(this.variables.find(v => v.name === e.inputNode.name)); return this.updateOptions(this.variables.find(v => v.name === e.inputNode.name));
}); });
}
return this.$q.all(promises).then(() => { return this.$q.all(promises).then(() => {
if (emitChangeEvents) { if (emitChangeEvents) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment