From e6e377beff550b5505a708cedd8688055f15b0cf Mon Sep 17 00:00:00 2001 From: Vikrant Gupta Date: Fri, 29 Mar 2024 11:08:33 +0530 Subject: [PATCH] fix: billing graph page crash (#4764) --- .../BillingContainer/BillingUsageGraph/BillingUsageGraph.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/container/BillingContainer/BillingUsageGraph/BillingUsageGraph.tsx b/frontend/src/container/BillingContainer/BillingUsageGraph/BillingUsageGraph.tsx index be77ebba95..a11488595f 100644 --- a/frontend/src/container/BillingContainer/BillingUsageGraph/BillingUsageGraph.tsx +++ b/frontend/src/container/BillingContainer/BillingUsageGraph/BillingUsageGraph.tsx @@ -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); }); });