Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix: Adds undefined check to avoid error.

Дамян Минков6687c3f4ab8c
diff --git a/react/features/filmstrip/middleware.web.js b/react/features/filmstrip/middleware.web.js
index 87aeadf755..be5218983a 100644
--- a/react/features/filmstrip/middleware.web.js
+++ b/react/features/filmstrip/middleware.web.js
@@ -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;