Refactor: fix tests.

This commit is contained in:
Alexander Zobnin
2016-11-13 19:02:37 +03:00
parent 6e0f59cd69
commit 4dc4e3b8ea
2 changed files with 9 additions and 15 deletions

View File

@@ -373,7 +373,7 @@ class ZabbixAPIDatasource {
});
target.textFilter = this.replaceTemplateVars(target.textFilter, options.scopedVars);
target.functions.forEach(func => {
_.forEach(target.functions, func => {
func.params = func.params.map(param => {
if (typeof param === 'number') {
return +this.templateSrv.replace(param.toString(), options.scopedVars);