Exclude trainings from streaming page
@@ -69,7 +69,9 @@ export const StreamingPage = () => {
}}
gap={4}
>
- {day?.rooms.map((room) => {
+ {day?.rooms
+ .filter((room) => room.type !== "training")
+ .map((room) => {
const runningEvent = day.runningEvents.filter(
(event) =>
event.rooms.findIndex((item) => item.id === room.id) !== -1,
@@ -79,7 +81,7 @@ export const StreamingPage = () => {
<Heading as="h1" sx={{ mb: 1 }}>
{room.name}
</Heading>
- <Text sx={{ mb: 3 }}>{runningEvent?.title ?? " "}</Text>
+ <Text sx={{ mb: 3 }}>{runningEvent?.title ?? "\u00A0"}</Text>
<Box
sx={{
position: "relative",
