mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-18 23:06:40 +00:00
Fix for 0 values in line chart tooltip (#24658)
This commit is contained in:
parent
5f4cb9e3c1
commit
9d4df46d5f
@ -124,7 +124,7 @@ export class StateHistoryChartLine extends LitElement {
|
||||
const data = dataset.data || [];
|
||||
for (let i = data.length - 1; i >= 0; i--) {
|
||||
const point = data[i];
|
||||
if (point && point[0] <= time && point[1]) {
|
||||
if (point && point[0] <= time && typeof point[1] === "number") {
|
||||
lastData = point;
|
||||
break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user