mirror of
https://github.com/grafana/grafana.git
synced 2024-11-30 20:54:22 -06:00
Fixed a bug with prefix and suffix not showing when using value mappings
This commit is contained in:
parent
6bb2d5ff24
commit
5c9c024475
@ -80,9 +80,9 @@ export class Gauge extends PureComponent<Props> {
|
||||
const { rangeMap, valueMap } = this.formatWithMappings(mappings, formattedValue);
|
||||
|
||||
if (valueMap) {
|
||||
return valueMap;
|
||||
return `${prefix} ${valueMap} ${suffix}`;
|
||||
} else if (rangeMap) {
|
||||
return rangeMap;
|
||||
return `${prefix} ${rangeMap} ${suffix}`;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user