Fixed templateSrv error in datasource.js

This commit is contained in:
Alexander Zobnin
2016-03-19 10:42:45 +03:00
parent fbe7480c07
commit 1ba30bc902

View File

@@ -279,9 +279,10 @@ export class ZabbixAPIDatasource {
metricFindQuery(query) {
// Split query. Query structure:
// group.host.app.item
var self = this;
var parts = [];
_.each(query.split('.'), function (part) {
part = this.templateSrv.replace(part);
part = self.templateSrv.replace(part);
// Replace wildcard to regex
if (part === '*') {