Fix energy dashboard data formatting (#24101)

This commit is contained in:
Petar Petrov 2025-02-06 13:38:22 +02:00 committed by GitHub
parent 9411a77f14
commit 2a0f69a629
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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: {