Переглянути джерело

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é 5 роки тому
джерело
коміт
bdda8c56c7
1 змінених файлів з 1 додано та 1 видалено
  1. 1
    1
      modules/UI/videolayout/VideoLayout.js

+ 1
- 1
modules/UI/videolayout/VideoLayout.js Переглянути файл

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

Завантаження…
Відмінити
Зберегти