mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Transformers: fix binary operation (#24604)
* check the display name * remove unchanged line Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
This commit is contained in:
parent
f23ecc40b4
commit
97e2837d7c
@ -10,6 +10,7 @@ import { seriesToColumnsTransformer } from './seriesToColumns';
|
||||
import { getTimeField } from '../../dataframe/processDataFrame';
|
||||
import defaults from 'lodash/defaults';
|
||||
import { BinaryOperationID, binaryOperators } from '../../utils/binaryOperators';
|
||||
import { getFieldDisplayName } from '../../field';
|
||||
|
||||
export enum CalculateFieldMode {
|
||||
ReduceRow = 'reduceRow',
|
||||
@ -182,7 +183,7 @@ function findFieldValuesWithNameOrConstant(frame: DataFrame, name: string): Vect
|
||||
}
|
||||
|
||||
for (const f of frame.fields) {
|
||||
if (f.name === name) {
|
||||
if (name === getFieldDisplayName(f, frame)) {
|
||||
return f.values;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user