fix(VideoLayout) make thumbnail iteration more resilient

If a failure occurs while we are still setting up the UI it's possible the local
thumbnail is still null, and none of the code assumes it may be null, so skip
it.
This commit is contained in:
Saúl Ibarra Corretgé 2020-10-09 13:59:39 +02:00 committed by Saúl Ibarra Corretgé
parent c239ba71e6
commit bdda8c56c7
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ function onLocalFlipXChanged(val) {
*/
function getAllThumbnails() {
return [
localVideoThumbnail,
...localVideoThumbnail ? [ localVideoThumbnail ] : [],
...Object.values(remoteVideos)
];
}