mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-12 16:15:13 +00:00
fix: chronological ordering in usage trends chart (#1008)
This commit is contained in:
1 parent
1b43d76841
commit
0e8abed798
1 file changed
+1
-1
@@ -46,7 +46,7 @@ export function UsageTrendChart({
|
|||||||
if (!data || data.length === 0) return [];
|
if (!data || data.length === 0) return [];
|
||||||
|
|
||||||
// For hourly data, already sorted ascending from API
|
// For hourly data, already sorted ascending from API
|
||||||
const sortedData = granularity === 'hourly' ? data : [...data].reverse();
|
const sortedData = data;
|
||||||
|
|
||||||
return sortedData.map((item) => {
|
return sortedData.map((item) => {
|
||||||
// Handle hourly vs daily data format
|
// Handle hourly vs daily data format
|
||||||
|
|||||||
Reference in new issue
Block a user