Fixed a bug with prefix and suffix not showing when using value mappings

This commit is contained in:
Hugo Häggmark 2019-01-15 18:41:04 +01:00
parent 6bb2d5ff24
commit 5c9c024475

View File

@ -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}`;
}
}