Fix missing tooltips in energy-usage-graph (#19031)

This commit is contained in:
karwosts 2023-12-18 03:52:52 -08:00 committed by GitHub
parent 5b9d46e350
commit 62d8cdfcf9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -662,7 +662,9 @@ export class HuiEnergyUsageGraphCard
});
});
const uniqueKeys = Array.from(new Set(allKeys));
const uniqueKeys = Array.from(new Set(allKeys)).sort(
(a, b) => Number(a) - Number(b)
);
Object.entries(combinedData).forEach(([type, sources]) => {
Object.entries(sources).forEach(([statId, source], idx) => {