From c3a8c2d2a29338835c10e2b64b76b59061b29b65 Mon Sep 17 00:00:00 2001 From: J Taylor Date: Wed, 30 Jun 2021 13:28:51 +0100 Subject: [PATCH] deconstruct array in TRACK_REMOVE --- dailyjs/shared/contexts/tracksState.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dailyjs/shared/contexts/tracksState.js b/dailyjs/shared/contexts/tracksState.js index 6bcdd19..c0a48fb 100644 --- a/dailyjs/shared/contexts/tracksState.js +++ b/dailyjs/shared/contexts/tracksState.js @@ -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;