Skip to content

Commit

Permalink
fix: fetch speakers
Browse files Browse the repository at this point in the history
  • Loading branch information
lero62 committed Dec 19, 2024
1 parent 0b11dee commit 3f03875
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/fetch-speakers.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,11 @@ const fetchData = async (client, { tagColors, labelColors, ...vars }) => {
const [
{ daySpeakers, eveningSpeakers },
{ daySpeakers: daySpeakersPast, eveningSpeakers: eveningSpeakersPast },
] = await Promise.all([emsSpeakers || data.speakers, pastSpeakers].map(speakers =>
processSpeakers(speakers, tagColors, labelColors)
));
] = await Promise.all(
[emsSpeakers || data.speakers || [], pastSpeakers || []].map(speakers =>
processSpeakers(speakers, tagColors, labelColors),
),
);

return {
speakers: { main: daySpeakers },
Expand Down

0 comments on commit 3f03875

Please sign in to comment.