From 07835dcc83493b3321de681752a758ef553fbf82 Mon Sep 17 00:00:00 2001 From: Alexander Zobnin Date: Sat, 16 Jan 2016 15:10:36 +0300 Subject: [PATCH] Fixed linter error. --- plugins/datasource-zabbix/datasource.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/datasource-zabbix/datasource.js b/plugins/datasource-zabbix/datasource.js index addbc0f..4ca75eb 100644 --- a/plugins/datasource-zabbix/datasource.js +++ b/plugins/datasource-zabbix/datasource.js @@ -83,9 +83,10 @@ function (angular, _, dateMath) { var promises = _.map(options.targets, function(target) { if (target.mode !== 1) { + // Don't show undefined and hidden targets - if (target.hide || !target.group || !target.host - || !target.application || !target.item) { + if (target.hide || !target.group || !target.host || + !target.application || !target.item) { return []; }