Browse Source

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

Hugo Häggmark 7 years ago
parent
commit
5c9c024475
1 changed files with 2 additions and 2 deletions
  1. 2 2
      public/app/viz/Gauge.tsx

+ 2 - 2
public/app/viz/Gauge.tsx

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