@@ -25,7 +25,7 @@ const speakers = await getEntries(entry.data.speakers);
2525
2626// Resolve session codes to session data
2727const resolveSessions = (codes : string []) =>
28- codes .map (( code ) => sessions .find (( s ) => s ? .data ? .code === code ));
28+ codes .map (code => sessions .find (s => s .data .code === code )! );
2929
3030// Filter out sessions with room "Exhibit Hall"
3131const filteredSessions = sessions .filter (
@@ -74,7 +74,7 @@ const nextSessionsOrdered = sameRoomNextSession
7474 <dd class =" capitalize" >{ entry .data .session_type } </dd >
7575 <dt class =" font-bold" >Level:</dt >
7676 <dd class =" capitalize" >{ entry .data .level } </dd >
77- <!-- {
77+ {
7878 entry .data .room && (
7979 <>
8080 <dt class = " font-bold" >Room:</dt >
@@ -95,7 +95,7 @@ const nextSessionsOrdered = sameRoomNextSession
9595 </dd >
9696 </>
9797 )
98- } -->
98+ }
9999 <dt class =" font-bold" >Duration:</dt >
100100 <dd >{ entry .data .duration } minutes</dd >
101101 </dl >
@@ -148,8 +148,8 @@ const nextSessionsOrdered = sameRoomNextSession
148148 The speaker{ speakers .length > 1 ? " s" : " " }
149149 </h2 >
150150 { speakers .map ((speaker ) => (
151- <div class = " md:grid grid-cols-[260px_1fr] md:gap-6" >
152- { speaker .data .avatar ? (
151+ <div class = { speaker . data . avatar ? " md:grid grid-cols-[260px_1fr] md:gap-6" : " " } >
152+ { speaker .data .avatar && (
153153 <div class = " flex items-start" >
154154 <div class = " border-4 border-white rounded-lg shadow-lg inline-block mb-10" >
155155 <Picture
@@ -161,10 +161,6 @@ const nextSessionsOrdered = sameRoomNextSession
161161 />
162162 </div >
163163 </div >
164- ) : (
165- <div class = " flex items-start mb-4 invisible" >
166- <img src = " " alt = " " class = " w-full max-w-sm mb-12" />
167- </div >
168164 )}
169165 <div >
170166 <p class = " mb-4" >
@@ -185,7 +181,7 @@ const nextSessionsOrdered = sameRoomNextSession
185181 )
186182 }
187183
188- <!-- {
184+ {
189185 (parallelSessions ?.length ?? 0 ) > 0 ||
190186 (nextSessionsInAllRooms ?.length ?? 0 ) > 0 ? (
191187 <>
@@ -232,7 +228,7 @@ const nextSessionsOrdered = sameRoomNextSession
232228 </div >
233229 </>
234230 ) : null
235- } -->
231+ }
236232 </footer >
237233 </article >
238234</Layout >
0 commit comments