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
@@ -185,7 +181,7 @@ const nextSessionsOrdered = sameRoomNextSession ) } - + }