mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +00:00
Fix energy dashboard data formatting (#24101)
This commit is contained in:
parent
9411a77f14
commit
2a0f69a629
@ -225,7 +225,7 @@ export function fillDataGapsAndRoundCaps(datasets: BarSeriesOption[]) {
|
||||
if (x === undefined) {
|
||||
continue;
|
||||
}
|
||||
if (x !== bucket) {
|
||||
if (Number(x) !== bucket) {
|
||||
datasets[i].data?.splice(index, 0, {
|
||||
value: [bucket, 0],
|
||||
itemStyle: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user