Fix Empty Months
This commit is contained in:
parent
4a2578761b
commit
763bf2eb31
|
@ -567,7 +567,10 @@ namespace Core.Main.DataObjects
|
|||
if (extraSection != null)
|
||||
{
|
||||
JArray monthlyStatsSection = (JArray)extraSection["monthlyStats"];
|
||||
_monthlyStats = monthlyStatsSection.Select(j => BuildMonthlyStatsData(j as JObject)).ToList();
|
||||
_monthlyStats = monthlyStatsSection
|
||||
.Where(j => j["totalSales"] != null && (double)j["totalSales"] != 0 && j["avgGrowth"] != null)
|
||||
.Select(j => BuildMonthlyStatsData(j as JObject))
|
||||
.ToList();
|
||||
_monthlyStatsRefresh = DateTime.UtcNow.AddSeconds(_systemConfiguration.GeneralSettings.Monitor.DashboardChartsRefreshSeconds - 1);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue