diff --git a/src/pages/session/[slug].astro b/src/pages/session/[slug].astro index 6790b5345..2101f0fb6 100644 --- a/src/pages/session/[slug].astro +++ b/src/pages/session/[slug].astro @@ -25,7 +25,7 @@ const speakers = await getEntries(entry.data.speakers); // Resolve session codes to session data const resolveSessions = (codes: string[]) => - codes.map((code) => sessions.find((s) => s?.data?.code === code)); + codes.map(code => sessions.find(s => s.data.code === code)!); // Filter out sessions with room "Exhibit Hall" const filteredSessions = sessions.filter( @@ -74,7 +74,7 @@ const nextSessionsOrdered = sameRoomNextSession
{entry.data.session_type}
Level:
{entry.data.level}
- + }
Duration:
{entry.data.duration} minutes
@@ -148,8 +148,8 @@ const nextSessionsOrdered = sameRoomNextSession The speaker{speakers.length > 1 ? "s" : ""} {speakers.map((speaker) => ( -
- {speaker.data.avatar ? ( +
+ {speaker.data.avatar && (
- ) : ( - )}

@@ -185,7 +181,7 @@ const nextSessionsOrdered = sameRoomNextSession ) } - + }