mirror of
https://github.com/grafana/grafana.git
synced 2024-11-30 20:54:22 -06:00
handle new variables created not yet added
This commit is contained in:
parent
ce538007d8
commit
1e74d7f20a
@ -122,12 +122,13 @@ export class VariableSrv {
|
||||
}
|
||||
|
||||
const g = this.createGraph();
|
||||
const promises = g
|
||||
.getNode(variable.name)
|
||||
.getOptimizedInputEdges()
|
||||
.map(e => {
|
||||
const node = g.getNode(variable.name);
|
||||
let promises = [];
|
||||
if (node) {
|
||||
promises = node.getOptimizedInputEdges().map(e => {
|
||||
return this.updateOptions(this.variables.find(v => v.name === e.inputNode.name));
|
||||
});
|
||||
}
|
||||
|
||||
return this.$q.all(promises).then(() => {
|
||||
if (emitChangeEvents) {
|
||||
|
Loading…
Reference in New Issue
Block a user