fix: page crash when wrong id configured

This commit is contained in:
lyc8503 committed 2025-11-05 01:22:10 +08:00
1 parent e87e350d6d
commit 78f9f1ee34
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -72,7 +72,7 @@ export default function OverallStatus({
}))
const upcomingMaintenances: (Omit<MaintenanceConfig, 'monitors'> & {
monitors?: MonitorTarget[]
monitors?: (MonitorTarget | undefined)[]
})[] = maintenances
.filter((m) => now < new Date(m.start))
.map((maintenance) => ({