also putting the delta graph in the sensors section
This commit is contained in:
parent
a437e2aa55
commit
489ac39e73
1 changed files with 7 additions and 3 deletions
|
|
@ -302,6 +302,7 @@ export default function GateGraphs(props: Props) {
|
|||
* @returns list of cards for the charts
|
||||
*/
|
||||
const sensorGraphs = () => {
|
||||
const tempComp = compMap.get(tempChain)
|
||||
let graphs: JSX.Element[] = []
|
||||
|
||||
//pressure
|
||||
|
|
@ -310,10 +311,13 @@ export default function GateGraphs(props: Props) {
|
|||
if(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
|
||||
let tempComp = compMap.get(tempChain)
|
||||
let tempReadings = compMeasurements.get(tempChain)
|
||||
if(tempComp && tempReadings){
|
||||
graphs.push(graphCard(tempComp, tempReadings))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue