From 90cac4f49f93be8073f2089d3e3e42f5e3e1fb4c Mon Sep 17 00:00:00 2001 From: Carter Date: Thu, 13 Nov 2025 16:04:17 -0600 Subject: [PATCH] fixed bug with co missing in the gas readings column --- src/pages/Devices.tsx | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/src/pages/Devices.tsx b/src/pages/Devices.tsx index 6617f9d..0e030c1 100644 --- a/src/pages/Devices.tsx +++ b/src/pages/Devices.tsx @@ -324,8 +324,20 @@ export default function Devices() { } useEffect(() => { - console.log(hasPlenums) - }, [hasPlenums]) + console.log("has no2: "+hasNo2) + }, [hasNo2]) + + useEffect(() => { + console.log("has co2: "+hasCo2) + }, [hasCo2]) + + useEffect(() => { + console.log("has co: "+hasNo2) + }, [hasNo2]) + + useEffect(() => { + console.log("has o2: "+hasO2) + }, [hasO2]) const openProvisionDialog = () => { setIsProvisionDialogOpen(true); @@ -659,7 +671,7 @@ export default function Devices() { } }) } - if (hasCo) { + if (hasCo && !groupGas) { columns.push({ title: groupGas ? "Gas" : "CO", render: (device: Device) => {