Skip to content

Commit

Permalink
Merge pull request #15 from leoswing/feature/fix_field_name_absolute_…
Browse files Browse the repository at this point in the history
…mode

fix: fix field name display in absolute mode
  • Loading branch information
leoswing authored Nov 20, 2024
2 parents b19ec4e + e4aa765 commit 488b20c
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 488b20c

Please sign in to comment.