@@ -370,7 +370,11 @@ export default function Popup( { onClose, onOptionSelect, unitList, unitIndex }
370370 </ tr >
371371 < tr >
372372 < td > < strong > Date Added: </ strong > { date_added } </ td >
373- < td > < strong > Season: </ strong > { season } </ td >
373+ < td > < strong > Season: </ strong >
374+ < span style = { { display : "inline-flex" , gap : "8px" , flexWrap : "wrap" } } >
375+ { Array . isArray ( season ) ? season . join ( ", " ) : season }
376+ </ span >
377+ </ td >
374378 </ tr >
375379 < tr >
376380 < td >
@@ -388,9 +392,7 @@ export default function Popup( { onClose, onOptionSelect, unitList, unitIndex }
388392 < td >
389393 < strong > Color: </ strong >
390394 < span style = { { display : "inline-flex" , gap : "8px" , flexWrap : "wrap" } } >
391- { Array . isArray ( color ) ? color . map ( ( c , i ) => (
392- < span key = { i } > { c } </ span >
393- ) ) : color }
395+ { Array . isArray ( color ) ? color . join ( ", " ) : color }
394396 </ span >
395397
396398 </ td >
@@ -403,12 +405,23 @@ export default function Popup( { onClose, onOptionSelect, unitList, unitIndex }
403405 { status }
404406 </ span >
405407 </ td >
406- < td > < strong > Garment Type: </ strong > { garment_type } </ td >
408+ < td >
409+ < strong > Garment Type: </ strong >
410+ < span style = { { display : "inline-flex" , gap : "8px" , flexWrap : "wrap" } } >
411+ { Array . isArray ( garment_type ) ? garment_type . join ( ", " ) : garment_type }
412+ </ span >
413+
414+ </ td >
407415 </ tr >
408416
409417 < tr >
410418 < td > { statusStatement } </ td >
411- < td > < strong > Time Period: </ strong > { time_period } </ td >
419+ < td >
420+ < strong > Time Period: </ strong >
421+ < span style = { { display : "inline-flex" , gap : "8px" , flexWrap : "wrap" } } >
422+ { Array . isArray ( time_period ) ? time_period . join ( ", " ) : time_period }
423+ </ span >
424+ </ td >
412425 </ tr >
413426 </ tbody >
414427 </ table >
0 commit comments