mirror of
https://github.com/grafana/grafana.git
synced 2026-07-30 00:08:10 -05:00
Fixed a bug with prefix and suffix not showing when using value mappings
This commit is contained in:
@@ -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}`;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user