From eb657075651d579dc97b1ae730fd4f577e02ed2b Mon Sep 17 00:00:00 2001 From: Ryderjj89 Date: Sun, 4 May 2025 17:26:00 -0400 Subject: [PATCH] Fix: treat other_items as string not array in Other Items section --- frontend/src/components/EventAdmin.tsx | 2 -- frontend/src/components/EventView.tsx | 2 -- 2 files changed, 4 deletions(-) diff --git a/frontend/src/components/EventAdmin.tsx b/frontend/src/components/EventAdmin.tsx index 249e1e5..ec6e30d 100644 --- a/frontend/src/components/EventAdmin.tsx +++ b/frontend/src/components/EventAdmin.tsx @@ -770,8 +770,6 @@ const EventAdmin: React.FC = () => { {(() => { const allOtherItems = rsvps .map(r => r.other_items) - .filter(Boolean) - .flat() .filter((item): item is string => typeof item === 'string' && item.trim() !== ''); return allOtherItems.length > 0 ? allOtherItems.join(', ') diff --git a/frontend/src/components/EventView.tsx b/frontend/src/components/EventView.tsx index a607768..68b6228 100644 --- a/frontend/src/components/EventView.tsx +++ b/frontend/src/components/EventView.tsx @@ -247,8 +247,6 @@ const EventView: React.FC = () => { {(() => { const allOtherItems = rsvps .map(r => r.other_items) - .filter(Boolean) - .flat() .filter((item): item is string => typeof item === 'string' && item.trim() !== ''); return allOtherItems.length > 0 ? allOtherItems.join(', ')