From 5c5a86c7fc413047e72ddb6dc96427b76ea4c8cf Mon Sep 17 00:00:00 2001 From: MacRimi Date: Mon, 2 Mar 2026 18:06:27 +0100 Subject: [PATCH] Update notification-settings.tsx --- AppImage/components/notification-settings.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AppImage/components/notification-settings.tsx b/AppImage/components/notification-settings.tsx index 379d68a2..f7876a9c 100644 --- a/AppImage/components/notification-settings.tsx +++ b/AppImage/components/notification-settings.tsx @@ -682,8 +682,8 @@ matcher: proxmenux-pbs logo: }, { key: "email", label: "Email", color: "amber", activeColor: "bg-amber-600 hover:bg-amber-700", logo: }, - ] as const).map(ch => { - const isEnabled = config.channels[ch.key]?.enabled || false + ] as { key: string; label: string; color: string; activeColor: string; logo: React.ReactNode }[]).map(ch => { + const isEnabled = (config.channels as Record)[ch.key]?.enabled || false const isSelected = selectedChannel === ch.key const colorMap: Record = { blue: "border-blue-500/60 bg-blue-500/10",