Wait for tracks to load before rendering events
This commit is contained in:
parent
b63bbd1b1e
commit
960545fe87
|
@ -25,7 +25,7 @@ export default function Schedule({
|
||||||
padding: '4px 0',
|
padding: '4px 0',
|
||||||
}}>{track.name[lang]}
|
}}>{track.name[lang]}
|
||||||
</div>)}
|
</div>)}
|
||||||
{events && Object.entries(events).map(([eventId, event]) => <section key={eventId} id={'lecture-'.concat(eventId)}>
|
{events && tracks && Object.entries(events).map(([eventId, event]) => <section key={eventId} id={'lecture-'.concat(eventId)}>
|
||||||
<p>
|
<p>
|
||||||
<strong>{event.title}</strong>
|
<strong>{event.title}</strong>
|
||||||
{event.participant_user_ids && !isTrackHidden(tracks[event.track_id]) && speakers && <>
|
{event.participant_user_ids && !isTrackHidden(tracks[event.track_id]) && speakers && <>
|
||||||
|
|
Loading…
Reference in New Issue