mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
fix invalid query filter
This commit is contained in:
parent
dcb5ea58ce
commit
728e96e134
@ -32,7 +32,11 @@ function (angular, _, moment, dateMath, kbn, templatingVariable, CloudWatchAnnot
|
||||
options.targets = this.expandTemplateVariable(options.targets, options.scopedVars, templateSrv);
|
||||
|
||||
var queries = _.filter(options.targets, function (item) {
|
||||
return item.hide !== true || !item.namespace || !item.metricName || _.isEmpty(item.statistics);
|
||||
return item.hide !== true &&
|
||||
!!item.region &&
|
||||
!!item.namespace &&
|
||||
!!item.metricName &&
|
||||
!_.isEmpty(item.statistics);
|
||||
}).map(function (item) {
|
||||
item.region = templateSrv.replace(item.region, options.scopedVars);
|
||||
item.namespace = templateSrv.replace(item.namespace, options.scopedVars);
|
||||
|
Loading…
Reference in New Issue
Block a user