File tree Expand file tree Collapse file tree
apps/webapp/app/components/runs/v3 Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -55,20 +55,24 @@ function SpanAccessory({
5555 case "pills" : {
5656 return (
5757 < span className = "flex items-center gap-1" >
58- { accessory . items . map ( ( item , index ) => (
59- < SpanPill key = { index } text = { item . text } icon = { item . icon } />
60- ) ) }
58+ { accessory . items
59+ . filter ( ( item ) => typeof item . text === "string" )
60+ . map ( ( item , index ) => (
61+ < SpanPill key = { index } text = { item . text } icon = { item . icon } />
62+ ) ) }
6163 </ span >
6264 ) ;
6365 }
6466 default : {
6567 return (
6668 < span className = { cn ( "flex gap-1" ) } >
67- { accessory . items . map ( ( item , index ) => (
68- < span key = { index } className = { cn ( "inline-flex items-center gap-1" ) } >
69- { item . text }
70- </ span >
71- ) ) }
69+ { accessory . items
70+ . filter ( ( item ) => typeof item . text === "string" )
71+ . map ( ( item , index ) => (
72+ < span key = { index } className = { cn ( "inline-flex items-center gap-1" ) } >
73+ { item . text }
74+ </ span >
75+ ) ) }
7276 </ span >
7377 ) ;
7478 }
You can’t perform that action at this time.
0 commit comments