From 5c9c0244751e1477427a092b506d3786426d91ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=A4ggmark?= Date: Tue, 15 Jan 2019 18:41:04 +0100 Subject: [PATCH] Fixed a bug with prefix and suffix not showing when using value mappings --- public/app/viz/Gauge.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/app/viz/Gauge.tsx b/public/app/viz/Gauge.tsx index 5112ff9aa1b..d5e4eb94884 100644 --- a/public/app/viz/Gauge.tsx +++ b/public/app/viz/Gauge.tsx @@ -80,9 +80,9 @@ export class Gauge extends PureComponent { const { rangeMap, valueMap } = this.formatWithMappings(mappings, formattedValue); if (valueMap) { - return valueMap; + return `${prefix} ${valueMap} ${suffix}`; } else if (rangeMap) { - return rangeMap; + return `${prefix} ${rangeMap} ${suffix}`; } }