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