v0.7.38 - Fixed error upon startup with existing db

This commit is contained in:
Your Name
2025-10-23 11:17:16 -04:00
parent 17b2aa8111
commit 079fb1b0f5
11 changed files with 122 additions and 54 deletions

View File

@@ -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 });