fix: billing graph page crash (#4764)

This commit is contained in:
Vikrant Gupta 2024-03-29 11:08:33 +05:30 committed by GitHub
parent 6da9de6591
commit e6e377beff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -46,7 +46,7 @@ const calculateStartEndTime = (
): { startTime: number; endTime: number } => {
const timestamps: number[] = [];
data?.details?.breakdown?.forEach((breakdown: any) => {
breakdown?.dayWiseBreakdown?.breakdown.forEach((entry: any) => {
breakdown?.dayWiseBreakdown?.breakdown?.forEach((entry: any) => {
timestamps.push(entry?.timestamp);
});
});