fix(VideoLayout): JS error if updateLargeVideo is called too early.

This commit is contained in:
hristoterezov
2018-07-09 20:22:43 -05:00
committed by Hristo Terezov
parent 9331b0870b
commit bd449be20d
+1 -1
View File
@@ -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