From 24b4a80853bee1ab426f59dafabe0fad975d08c9 Mon Sep 17 00:00:00 2001 From: Seth Call Date: Wed, 18 Aug 2021 13:30:42 -0500 Subject: [PATCH] Fix latency + scheduled sessions --- .../react-components/FindSessionOpen.js.jsx.coffee | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web/app/assets/javascripts/react-components/FindSessionOpen.js.jsx.coffee b/web/app/assets/javascripts/react-components/FindSessionOpen.js.jsx.coffee index 928f2d16b..14ba5e909 100644 --- a/web/app/assets/javascripts/react-components/FindSessionOpen.js.jsx.coffee +++ b/web/app/assets/javascripts/react-components/FindSessionOpen.js.jsx.coffee @@ -191,6 +191,10 @@ LatencyActions = @LatencyActions if sessionsChanged.type == @props.mode for session in sessionsChanged.sessions + if session.active_music_session? + for participant in session.active_music_session.participants + @state.participant_ids.push(participant.user.id) unless _.contains(@state.participant_ids, participant.user.id) + for rsvp in session.approved_rsvps @state.participant_ids.push(rsvp.id) unless _.contains(@state.participant_ids, rsvp.id)