Skip empty brackets if there are no participant users
This commit is contained in:
parent
d08d52a361
commit
ff9fbf50a2
|
@ -89,7 +89,7 @@ export default function Schedule({
|
||||||
{events.map(event => <section key={event.id} id={'event-'.concat(event.id)}>
|
{events.map(event => <section key={event.id} id={'event-'.concat(event.id)}>
|
||||||
<p>
|
<p>
|
||||||
<strong>{event.title}</strong>
|
<strong>{event.title}</strong>
|
||||||
{event.participant_users && !isTrackHidden(event.track) && <>
|
{event.participant_users.length > 0 && !isTrackHidden(event.track) && <>
|
||||||
({event.participant_users.map(speaker => speaker && <Speaker key={speaker.id} {...speaker} />)})
|
({event.participant_users.map(speaker => speaker && <Speaker key={speaker.id} {...speaker} />)})
|
||||||
</>}
|
</>}
|
||||||
</p>
|
</p>
|
||||||
|
|
Loading…
Reference in New Issue