diff --git a/plugins/polio/js/src/domains/Campaigns/CampaignsList/Dashboard.tsx b/plugins/polio/js/src/domains/Campaigns/CampaignsList/Dashboard.tsx index 95a3de8a5b..8294a7c582 100644 --- a/plugins/polio/js/src/domains/Campaigns/CampaignsList/Dashboard.tsx +++ b/plugins/polio/js/src/domains/Campaigns/CampaignsList/Dashboard.tsx @@ -44,7 +44,7 @@ export const Dashboard: FunctionComponent = () => { campaigns: rawCampaigns.campaigns.map(campaign => ({ ...campaign, grouped_campaigns: - campaign.grouped_campaigns.length > 0 + (campaign.grouped_campaigns?.length ?? 0) > 0 ? campaign.grouped_campaigns : null, })),