deconstruct array in TRACK_REMOVE

This commit is contained in:
J Taylor 2021-06-30 13:28:51 +01:00
parent 262d93c86e
commit c3a8c2d2a2
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ function tracksReducer(prevState, action) {
const newSubscriptions = { ...subscriptions };
const newVideoTracks = { ...videoTracks };
action.items.forEach(({ participant, track }) => {
action.items.forEach(([participant, track]) => {
const id = participant ? getId(participant) : null;
const screenId = participant ? getScreenId(id) : null;