From bd449be20d30f7172908e96bda0257a776d4752d Mon Sep 17 00:00:00 2001 From: hristoterezov Date: Mon, 9 Jul 2018 19:04:54 -0500 Subject: [PATCH] fix(VideoLayout): JS error if updateLargeVideo is called too early. --- modules/UI/videolayout/VideoLayout.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/UI/videolayout/VideoLayout.js b/modules/UI/videolayout/VideoLayout.js index 9c928e796..adeeb0f35 100644 --- a/modules/UI/videolayout/VideoLayout.js +++ b/modules/UI/videolayout/VideoLayout.js @@ -954,7 +954,7 @@ const VideoLayout = { } } - if (!isOnLarge || forceUpdate) { + if ((!isOnLarge || forceUpdate) && smallVideo) { const videoType = this.getRemoteVideoType(id); // FIXME video type is not the same thing as container type