Fix: treat other_items as string not array in Other Items section
This commit is contained in:
@@ -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(', ')
|
||||
|
||||
@@ -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(', ')
|
||||
|
||||
Reference in New Issue
Block a user