From 96f013c549d628b256d4c228c408cf63622aeef2 Mon Sep 17 00:00:00 2001 From: damencho Date: Mon, 24 Jun 2019 09:51:23 +0100 Subject: [PATCH] Fixes few undefined errors on standby. --- modules/UI/videolayout/VideoLayout.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/UI/videolayout/VideoLayout.js b/modules/UI/videolayout/VideoLayout.js index 51b3dafe5..1ffb70fe7 100644 --- a/modules/UI/videolayout/VideoLayout.js +++ b/modules/UI/videolayout/VideoLayout.js @@ -637,7 +637,7 @@ const VideoLayout = { */ onVideoMute(id, value) { if (APP.conference.isLocalId(id)) { - localVideoThumbnail.setVideoMutedView(value); + localVideoThumbnail && localVideoThumbnail.setVideoMutedView(value); } else { const remoteVideo = remoteVideos[id]; @@ -985,7 +985,7 @@ const VideoLayout = { } else if (currentId) { const currentSmallVideo = this.getSmallVideo(currentId); - currentSmallVideo.updateView(); + currentSmallVideo && currentSmallVideo.updateView(); } },