diff --git a/AppImage/components/health-status-modal.tsx b/AppImage/components/health-status-modal.tsx index 74b064b..4a033bd 100644 --- a/AppImage/components/health-status-modal.tsx +++ b/AppImage/components/health-status-modal.tsx @@ -87,16 +87,19 @@ export function HealthStatusModal({ open, onOpenChange, getApiUrl }: HealthStatu } } - const groupedChecks = healthData?.checks.reduce( - (acc, check) => { - if (!acc[check.category]) { - acc[check.category] = [] - } - acc[check.category].push(check) - return acc - }, - {} as Record, - ) + const groupedChecks = + healthData?.checks && Array.isArray(healthData.checks) + ? healthData.checks.reduce( + (acc, check) => { + if (!acc[check.category]) { + acc[check.category] = [] + } + acc[check.category].push(check) + return acc + }, + {} as Record, + ) + : {} return (