v0.7.38 - Fixed error upon startup with existing db
This commit is contained in:
@@ -3971,9 +3971,9 @@ function updateStatsFromTimeMonitoringEvent(monitoringData) {
|
||||
|
||||
// Extract values from periods array
|
||||
monitoringData.periods.forEach(period => {
|
||||
if (period.period === '24h') timeStats.last_24h = period.event_count;
|
||||
else if (period.period === '7d') timeStats.last_7d = period.event_count;
|
||||
else if (period.period === '30d') timeStats.last_30d = period.event_count;
|
||||
if (period.period === '24h') timeStats.last_24h = period.count;
|
||||
else if (period.period === '7d') timeStats.last_7d = period.count;
|
||||
else if (period.period === '30d') timeStats.last_30d = period.count;
|
||||
});
|
||||
|
||||
populateStatsTime({ time_stats: timeStats });
|
||||
|
||||
Reference in New Issue
Block a user