Skip to content

Commit

Permalink
fix: fix field name display in absolute mode
Browse files Browse the repository at this point in the history
  • Loading branch information
leoswing committed Nov 18, 2024
1 parent b19ec4e commit e4aa765
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/datasource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ export class DataSource extends DataSourceApi<CompareQueriesQuery, CompareQuerie
if (field.name) {
const valueFieldName = _this.getValueFieldName(line);
const inputName = field.type === FieldType.number && valueFieldName ? valueFieldName : field.name;
field.name = _this.generalAlias(inputName, timeShiftAlias, aliasType, delimiter);
field.type === FieldType.number && (field.name = _this.generalAlias(inputName, timeShiftAlias, aliasType, delimiter));
}

if (field.config && field.config.displayName) {
Expand Down

0 comments on commit e4aa765

Please sign in to comment.