From b344f412c9cf84fff35284b396788160e9852e31 Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Tue, 15 Jul 2025 13:21:46 +0530 Subject: [PATCH] fix: forecasting chart is breaking if no data --- crm/api/dashboard.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/crm/api/dashboard.py b/crm/api/dashboard.py index 03097b3f..5a9c56b8 100644 --- a/crm/api/dashboard.py +++ b/crm/api/dashboard.py @@ -649,8 +649,6 @@ def get_forecasted_revenue(from_date="", to_date="", user=""): """, as_dict=True, ) - if not result: - return [] for row in result: row["month"] = frappe.utils.get_datetime(row["month"]).strftime("%Y-%m-01")