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(VideoLayout) make thumbnail iteration more resilient

Saúl Ibarra Corretgébdda8c56c794
diff --git a/modules/UI/videolayout/VideoLayout.js b/modules/UI/videolayout/VideoLayout.js
index a0072ac473..683685b15d 100644
--- a/modules/UI/videolayout/VideoLayout.js
+++ b/modules/UI/videolayout/VideoLayout.js
@@ -52,7 +52,7 @@ function onLocalFlipXChanged(val) {
*/
function getAllThumbnails() {
return [
- localVideoThumbnail,
+ ...localVideoThumbnail ? [ localVideoThumbnail ] : [],
...Object.values(remoteVideos)
];
}