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

This commit is contained in:
hristoterezov 2018-07-09 19:04:54 -05:00 committed by Hristo Terezov
parent 9331b0870b
commit bd449be20d
1 changed files with 1 additions and 1 deletions

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