File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
frontend/src/components/blocks/live-streaming-section Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ export const LiveStreamingSection = () => {
4141 } ;
4242
4343 const runningEvent = currentDay ?. runningEvents ?. filter ( ( event ) =>
44- event . rooms . map ( ( room ) => room . id ) . includes ( currentRoom . id ) ,
44+ ( event . livestreamingRoom ? [ event . livestreamingRoom ] : event . rooms ) . map ( ( room ) => room . id ) . includes ( currentRoom . id ) ,
4545 ) ?. [ 0 ] ;
4646
4747 const hasLiveVideos = currentDay ?. rooms ?. some ( ( room ) => room . streamingUrl ) ;
@@ -162,7 +162,7 @@ const isRoomStreaming = (
162162) => {
163163 return runningEvents . some (
164164 ( event ) =>
165- event . rooms . map ( ( room ) => room . id ) . includes ( room . id ) &&
165+ ( event . livestreamingRoom ? [ event . livestreamingRoom ] : event . rooms ) . map ( ( room ) => room . id ) . includes ( room . id ) &&
166166 event . type !== "custom" ,
167167 ) ;
168168} ;
Original file line number Diff line number Diff line change @@ -11,6 +11,10 @@ query LiveStreamingSection($code: String!) {
1111 duration
1212 title
1313 type
14+ livestreamingRoom {
15+ id
16+ name
17+ }
1418 rooms {
1519 id
1620 name
You can’t perform that action at this time.
0 commit comments