Wait for tracks to load before rendering events

This commit is contained in:
Vencislav Atanasov 2024-09-19 01:30:19 +03:00
parent b63bbd1b1e
commit 960545fe87
1 changed files with 1 additions and 1 deletions

View File

@ -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 && <>