浏览代码

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.
master
Saúl Ibarra Corretgé 4 年前
父节点
当前提交
bdda8c56c7
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      modules/UI/videolayout/VideoLayout.js

+ 1
- 1
modules/UI/videolayout/VideoLayout.js 查看文件

52
  */
52
  */
53
 function getAllThumbnails() {
53
 function getAllThumbnails() {
54
     return [
54
     return [
55
-        localVideoThumbnail,
55
+        ...localVideoThumbnail ? [ localVideoThumbnail ] : [],
56
         ...Object.values(remoteVideos)
56
         ...Object.values(remoteVideos)
57
     ];
57
     ];
58
 }
58
 }

正在加载...
取消
保存