fixed bug with co missing in the gas readings column
This commit is contained in:
parent
d41853e0f2
commit
90cac4f49f
1 changed files with 15 additions and 3 deletions
|
|
@ -324,8 +324,20 @@ export default function Devices() {
|
||||||
}
|
}
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
console.log(hasPlenums)
|
console.log("has no2: "+hasNo2)
|
||||||
}, [hasPlenums])
|
}, [hasNo2])
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
console.log("has co2: "+hasCo2)
|
||||||
|
}, [hasCo2])
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
console.log("has co: "+hasNo2)
|
||||||
|
}, [hasNo2])
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
console.log("has o2: "+hasO2)
|
||||||
|
}, [hasO2])
|
||||||
|
|
||||||
const openProvisionDialog = () => {
|
const openProvisionDialog = () => {
|
||||||
setIsProvisionDialogOpen(true);
|
setIsProvisionDialogOpen(true);
|
||||||
|
|
@ -659,7 +671,7 @@ export default function Devices() {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
if (hasCo) {
|
if (hasCo && !groupGas) {
|
||||||
columns.push({
|
columns.push({
|
||||||
title: groupGas ? "Gas" : "CO",
|
title: groupGas ? "Gas" : "CO",
|
||||||
render: (device: Device) => {
|
render: (device: Device) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue