fix: add check for potential undefined userId
This commit is contained in:
parent
75efa60f7d
commit
4b9f16ca0f
@ -201,7 +201,7 @@ const VideoListItem = (props) => {
|
|||||||
fullscreen={isFullscreenContext}
|
fullscreen={isFullscreenContext}
|
||||||
data-test={talking ? 'webcamItemTalkingUser' : 'webcamItem'}
|
data-test={talking ? 'webcamItemTalkingUser' : 'webcamItem'}
|
||||||
animations={animations}
|
animations={animations}
|
||||||
{...makeDragOperations(onVirtualBgDrop, user.userId)}
|
{...makeDragOperations(onVirtualBgDrop, user?.userId)}
|
||||||
>
|
>
|
||||||
{
|
{
|
||||||
videoIsReady
|
videoIsReady
|
||||||
|
@ -58,7 +58,7 @@ const DragAndDrop = (props) => {
|
|||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
const makeDragOperations = (onAction, userId) => {
|
const makeDragOperations = (onAction, userId) => {
|
||||||
if (Auth.userID !== userId || !ENABLE_WEBCAM_BACKGROUND_UPLOAD) return {};
|
if (!userId || Auth.userID !== userId || !ENABLE_WEBCAM_BACKGROUND_UPLOAD) return {};
|
||||||
|
|
||||||
const startAndSaveVirtualBackground = (file) => {
|
const startAndSaveVirtualBackground = (file) => {
|
||||||
const { readFile } = VirtualBgService;
|
const { readFile } = VirtualBgService;
|
||||||
|
Loading…
Reference in New Issue
Block a user