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:
parent
c239ba71e6
commit
bdda8c56c7
|
@ -52,7 +52,7 @@ function onLocalFlipXChanged(val) {
|
|||
*/
|
||||
function getAllThumbnails() {
|
||||
return [
|
||||
localVideoThumbnail,
|
||||
...localVideoThumbnail ? [ localVideoThumbnail ] : [],
|
||||
...Object.values(remoteVideos)
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue