From 7adba972e74dfb27fb7cf2cefbb0f8d0a875a501 Mon Sep 17 00:00:00 2001 From: MichaelDvP Date: Thu, 9 Jan 2025 08:54:36 +0100 Subject: [PATCH] Don't show uom for empty string --- interface/src/app/main/deviceValue.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interface/src/app/main/deviceValue.ts b/interface/src/app/main/deviceValue.ts index 9078f0334..e03bf712c 100644 --- a/interface/src/app/main/deviceValue.ts +++ b/interface/src/app/main/deviceValue.ts @@ -36,7 +36,7 @@ export function formatValue( } return ( (value as string) + - (uom === undefined || uom === 0 ? '' : ' ' + DeviceValueUOM_s[uom]) + (value === '' || uom === undefined || uom === 0 ? '' : ' ' + DeviceValueUOM_s[uom]) ); }