Fix: treat other_items as string not array in Other Items section

This commit is contained in:
Ryderjj89
2025-05-04 17:26:00 -04:00
parent 455dbf7ee6
commit eb65707565
2 changed files with 0 additions and 4 deletions

View File

@@ -770,8 +770,6 @@ const EventAdmin: React.FC = () => {
{(() => { {(() => {
const allOtherItems = rsvps const allOtherItems = rsvps
.map(r => r.other_items) .map(r => r.other_items)
.filter(Boolean)
.flat()
.filter((item): item is string => typeof item === 'string' && item.trim() !== ''); .filter((item): item is string => typeof item === 'string' && item.trim() !== '');
return allOtherItems.length > 0 return allOtherItems.length > 0
? allOtherItems.join(', ') ? allOtherItems.join(', ')

View File

@@ -247,8 +247,6 @@ const EventView: React.FC = () => {
{(() => { {(() => {
const allOtherItems = rsvps const allOtherItems = rsvps
.map(r => r.other_items) .map(r => r.other_items)
.filter(Boolean)
.flat()
.filter((item): item is string => typeof item === 'string' && item.trim() !== ''); .filter((item): item is string => typeof item === 'string' && item.trim() !== '');
return allOtherItems.length > 0 return allOtherItems.length > 0
? allOtherItems.join(', ') ? allOtherItems.join(', ')