diff --git a/src/datasource-zabbix/migrations.js b/src/datasource-zabbix/migrations.js index 2643605..b917f11 100644 --- a/src/datasource-zabbix/migrations.js +++ b/src/datasource-zabbix/migrations.js @@ -5,7 +5,8 @@ export function isGrafana2target(target) { if (!target.mode || target.mode === 0 || target.mode === 2) { - if ((target.hostFilter || target.itemFilter || target.downsampleFunction || target.host.host) && + if ((target.hostFilter || target.itemFilter || target.downsampleFunction || + (target.host && target.host.host)) && (target.item.filter === undefined && target.host.filter === undefined)) { return true; } else {