mirror of
https://github.com/grafana/grafana.git
synced 2024-12-02 05:29:42 -06:00
process this.target separately to fix issues with tests
This commit is contained in:
parent
715453204e
commit
a64e000f1a
@ -220,9 +220,13 @@ export class GraphiteQueryCtrl extends QueryCtrl {
|
||||
this.target.target = _.reduce(this.functions, this.wrapFunction, metricPath);
|
||||
}
|
||||
|
||||
// loop through queries and update targetFull as needed
|
||||
for (const target of this.panelCtrl.panel.targets) {
|
||||
this.resolveTarget(target);
|
||||
this.resolveTarget(this.target);
|
||||
|
||||
// loop through other queries and update targetFull as needed
|
||||
for (const target of this.panelCtrl.panel.targets || []) {
|
||||
if (target.refId !== this.target.refId) {
|
||||
this.resolveTarget(target);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user