fix target backward compatibility
This commit is contained in:
@@ -113,7 +113,8 @@ class ZabbixAPIDatasource {
|
||||
let useTrends = this.isUseTrends(timeRange);
|
||||
|
||||
// Metrics or Text query mode
|
||||
if (target.mode === c.MODE_METRICS || target.mode === c.MODE_TEXT || target.mode === c.MODE_ITEMID) {
|
||||
if (!target.mode || target.mode === c.MODE_METRICS ||
|
||||
target.mode === c.MODE_TEXT || target.mode === c.MODE_ITEMID) {
|
||||
// Migrate old targets
|
||||
target = migrations.migrate(target);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user