|
|
@@ -42,7 +42,7 @@ export function getDisplayProcessor(options?: DisplayValueOptions): DisplayProce
|
|
|
|
|
|
return (value: any) => {
|
|
|
const { mappings, thresholds, theme } = options;
|
|
|
- let color = field.color;
|
|
|
+ let color;
|
|
|
|
|
|
let text = _.toString(value);
|
|
|
let numeric = toNumber(value);
|
|
|
@@ -76,7 +76,7 @@ export function getDisplayProcessor(options?: DisplayValueOptions): DisplayProce
|
|
|
const { decimals, scaledDecimals } = getDecimalsForValue(value, field.decimals);
|
|
|
text = formatFunc(numeric, decimals, scaledDecimals, options.isUtc);
|
|
|
}
|
|
|
- if (thresholds && thresholds.length > 0) {
|
|
|
+ if (thresholds && thresholds.length) {
|
|
|
color = getColorFromThreshold(numeric, thresholds, theme);
|
|
|
}
|
|
|
}
|