Skip to content

Commit

Permalink
Merge pull request #2357 from gdg-x/tags
Browse files Browse the repository at this point in the history
Handle undefined subsession
  • Loading branch information
abraham authored Apr 4, 2022
2 parents 39280d7 + f514eba commit 78389a9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export function sessionsSpeakersScheduleMap(sessionsRaw, speakersRaw, scheduleRa
for (let subSessionIndex = 0; subSessionIndex < subSessionsLen; subSessionIndex++) {
const sessionId = timeslot.sessions[sessionIndex].items[subSessionIndex];
const subsession = sessionsRaw[sessionId];
const mainTag = pickMainTag(subsession.tags);
const mainTag = pickMainTag(subsession?.tags);
const endTime = calculateEndTime(
subSessionsLen,
timeslot,
Expand All @@ -51,7 +51,7 @@ export function sessionsSpeakersScheduleMap(sessionsRaw, speakersRaw, scheduleRa
timeslot
);

dayTags = combineTags(dayTags, subsession.tags);
dayTags = combineTags(dayTags, subsession?.tags);
scheduleTags = combineTags(scheduleTags, [mainTag]);

const finalSubSession = {
Expand Down

0 comments on commit 78389a9

Please sign in to comment.