fix: Adds undefined check to avoid error.
Was breaking DisableSelfViewTest.
This commit is contained in:
parent
42703fed47
commit
6687c3f4ab
|
@ -106,8 +106,10 @@ MiddlewareRegistry.register(store => next => action => {
|
|||
store.dispatch(removeStageParticipant(local.id));
|
||||
}
|
||||
|
||||
if (activeParticipantsIds.find(id => id === localScreenShare.id)) {
|
||||
store.dispatch(removeStageParticipant(localScreenShare.id));
|
||||
if (localScreenShare) {
|
||||
if (activeParticipantsIds.find(id => id === localScreenShare.id)) {
|
||||
store.dispatch(removeStageParticipant(localScreenShare.id));
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue