diff --git a/src/datasource/dataProcessor.ts b/src/datasource/dataProcessor.ts index c183cf6d..9eec7f5b 100644 --- a/src/datasource/dataProcessor.ts +++ b/src/datasource/dataProcessor.ts @@ -13,7 +13,9 @@ function setAlias(alias: string, frame: DataFrame) { valueField.config.displayNameFromDS = alias; } frame.name = alias; - return frame; + if (valueField) { + return frame; + } } for (let fieldIndex = 0; fieldIndex < frame.fields.length; fieldIndex++) { diff --git a/src/datasource/datasource.ts b/src/datasource/datasource.ts index 4d8a3b77..cbb16976 100644 --- a/src/datasource/datasource.ts +++ b/src/datasource/datasource.ts @@ -511,7 +511,12 @@ export class ZabbixDatasource extends DataSourceApi