From 0cf1d09978fd2159325eca2455af66d96eb396a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ram=C3=B3n=20Souza?= Date: Thu, 15 Dec 2022 14:49:47 -0300 Subject: [PATCH] add early return to video list item if user data is unavailable --- .../video-provider/video-list/video-list-item/container.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bigbluebutton-html5/imports/ui/components/video-provider/video-list/video-list-item/container.jsx b/bigbluebutton-html5/imports/ui/components/video-provider/video-list/video-list-item/container.jsx index 0480d9132f..e35bc0b3bc 100755 --- a/bigbluebutton-html5/imports/ui/components/video-provider/video-list/video-list-item/container.jsx +++ b/bigbluebutton-html5/imports/ui/components/video-provider/video-list/video-list-item/container.jsx @@ -7,7 +7,7 @@ import VideoListItem from './component'; import { layoutSelect, layoutDispatch } from '/imports/ui/components/layout/context'; const VideoListItemContainer = (props) => { - const { cameraId } = props; + const { cameraId, user } = props; const fullscreen = layoutSelect((i) => i.fullscreen); const { element } = fullscreen; @@ -15,6 +15,8 @@ const VideoListItemContainer = (props) => { const layoutContextDispatch = layoutDispatch(); const isRTL = layoutSelect((i) => i.isRTL); + if (!user) return null; + return (