From 6d300a25ef21b9bc610180ad5556d720e29b4456 Mon Sep 17 00:00:00 2001 From: QuackieMackie Date: Thu, 18 Sep 2025 22:42:19 +0100 Subject: [PATCH] fix: Added type definitions for active and upcoming maintenances --- components/OverallStatus.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/OverallStatus.tsx b/components/OverallStatus.tsx index 8abca70..b20b2df 100644 --- a/components/OverallStatus.tsx +++ b/components/OverallStatus.tsx @@ -58,7 +58,7 @@ export default function OverallStatus({ }) const now = new Date() - const activeMaintenances = maintenances + const activeMaintenances: (Omit & { monitors?: MonitorTarget[] })[] = maintenances .filter((m) => now >= new Date(m.start) && (!m.end || now <= new Date(m.end))) .map((maintenance) => ({ ...maintenance, @@ -67,7 +67,7 @@ export default function OverallStatus({ ), })) - const upcomingMaintenances = maintenances + const upcomingMaintenances: (Omit & { monitors?: MonitorTarget[] })[] = maintenances .filter((m) => now < new Date(m.start)) .map((maintenance) => ({ ...maintenance,