Fix dashboard temp visibility filter
This commit is contained in:
@@ -363,7 +363,7 @@ function render(data){
|
||||
<div class="item"><span>Cell ${i+1}</span><strong>${fmt(v,3)} V</strong></div>`).join("") ||
|
||||
`<div class="item"><span>No cell data</span><strong class="muted">--</strong></div>`;
|
||||
|
||||
const visibleTemps=(data.temps||[]).filter(t=>t.enabled && t.address && t.online && typeof t.temperature_f==="number");
|
||||
const visibleTemps=(data.temps||[]).filter(t=>t.enabled && t.online && typeof t.temperature_f==="number");
|
||||
$("temps").innerHTML=visibleTemps.map(t=>`
|
||||
<div class="item">
|
||||
<span>${t.name||t.id}</span>
|
||||
|
||||
Reference in New Issue
Block a user