deconstruct array in TRACK_REMOVE
This commit is contained in:
parent
262d93c86e
commit
c3a8c2d2a2
|
|
@ -64,7 +64,7 @@ function tracksReducer(prevState, action) {
|
||||||
const newSubscriptions = { ...subscriptions };
|
const newSubscriptions = { ...subscriptions };
|
||||||
const newVideoTracks = { ...videoTracks };
|
const newVideoTracks = { ...videoTracks };
|
||||||
|
|
||||||
action.items.forEach(({ participant, track }) => {
|
action.items.forEach(([participant, track]) => {
|
||||||
const id = participant ? getId(participant) : null;
|
const id = participant ? getId(participant) : null;
|
||||||
const screenId = participant ? getScreenId(id) : null;
|
const screenId = participant ? getScreenId(id) : null;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue