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(hangup): ensure large video exists before getting displayed id (#2799)

virtuacoplenny907cb013a861
diff --git a/modules/UI/videolayout/VideoLayout.js b/modules/UI/videolayout/VideoLayout.js
index 989e41ccf4..62b1b29be4 100644
--- a/modules/UI/videolayout/VideoLayout.js
+++ b/modules/UI/videolayout/VideoLayout.js
@@ -1092,7 +1092,7 @@ const VideoLayout = {
* Currently used by tests (torture).
*/
getLargeVideoID() {
- return largeVideo.id;
+ return largeVideo && largeVideo.id;
},
/**