Commit 5c9c0244 by Hugo Häggmark

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

parent 6bb2d5ff
......@@ -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}`;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment