also putting the delta graph in the sensors section

This commit is contained in:
csawatzky 2026-02-05 12:32:07 -06:00
parent a437e2aa55
commit 489ac39e73

View file

@ -302,6 +302,7 @@ export default function GateGraphs(props: Props) {
* @returns list of cards for the charts * @returns list of cards for the charts
*/ */
const sensorGraphs = () => { const sensorGraphs = () => {
const tempComp = compMap.get(tempChain)
let graphs: JSX.Element[] = [] let graphs: JSX.Element[] = []
//pressure //pressure
@ -310,10 +311,13 @@ export default function GateGraphs(props: Props) {
if(pressureComp && pressureReadings){ if(pressureComp && pressureReadings){
graphs.push(graphCard(pressureComp, pressureReadings)) graphs.push(graphCard(pressureComp, pressureReadings))
} }
// maybe also put the delta time graph here as well
if(tempComp){
graphs.push(
<GateDeltaTempGraph deviceID={device} start={startDate} end={endDate} tempComponent={tempComp}/>
)
}
//T/H chain //T/H chain
let tempComp = compMap.get(tempChain)
let tempReadings = compMeasurements.get(tempChain) let tempReadings = compMeasurements.get(tempChain)
if(tempComp && tempReadings){ if(tempComp && tempReadings){
graphs.push(graphCard(tempComp, tempReadings)) graphs.push(graphCard(tempComp, tempReadings))