Merge branch 'emsesp:dev' into dev

This commit is contained in:
Proddy
2025-01-09 14:21:45 +01:00
committed by GitHub
6 changed files with 24 additions and 3 deletions

View File

@@ -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])
);
}

View File

@@ -115,7 +115,7 @@ const SystemLog = () => {
immediate: true,
interceptByGlobalResponded: false
})
.onMessage((message: { id: number; data: string }) => {
.onMessage((message: { data: string }) => {
const rawData = message.data;
const logentry = JSON.parse(rawData) as LogEntry;
setLogEntries((log) => [...log, logentry]);