From 2623178a002faf3a91651382fe94cb4c2b90c605 Mon Sep 17 00:00:00 2001 From: proddy Date: Wed, 6 Nov 2024 20:33:04 +0100 Subject: [PATCH] aligning table formatting and style --- interface/src/app/main/Dashboard.tsx | 13 +++++-------- interface/src/app/main/Devices.tsx | 6 ++++-- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/interface/src/app/main/Dashboard.tsx b/interface/src/app/main/Dashboard.tsx index 2f2e1e5f7..52030b152 100644 --- a/interface/src/app/main/Dashboard.tsx +++ b/interface/src/app/main/Dashboard.tsx @@ -185,7 +185,7 @@ const Dashboard = () => { // if its a device (parent node) and has entities if (di.nodes?.length) { return ( - +   {showType(di.n, di.t)}  ({di.nodes?.length}) @@ -248,10 +248,10 @@ const Dashboard = () => { onChange={handleShowAll} > - + - + @@ -302,7 +302,7 @@ const Dashboard = () => { title={formatValue(LL, di.dv?.v, di.dv?.u)} arrow > - {formatValue(LL, di.dv?.v, di.dv?.u)} + {formatValue(LL, di.dv?.v, di.dv?.u)} @@ -310,10 +310,7 @@ const Dashboard = () => { {me.admin && di.dv?.c && !hasMask(di.dv.id, DeviceEntityMask.DV_READONLY) && ( - editDashboardValue(di)} - > + editDashboardValue(di)}> { @@ -573,7 +573,9 @@ const Devices = () => { const deviceValueDialogClose = () => { setDeviceValueDialogOpen(false); - void sendDeviceData(selectedDevice); + if (selectedDevice !== undefined) { + void sendDeviceData(selectedDevice); + } }; const renderDeviceData = () => {