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}
|
||||
data-test={talking ? 'webcamItemTalkingUser' : 'webcamItem'}
|
||||
animations={animations}
|
||||
{...makeDragOperations(onVirtualBgDrop, user.userId)}
|
||||
{...makeDragOperations(onVirtualBgDrop, user?.userId)}
|
||||
>
|
||||
{
|
||||
videoIsReady
|
||||
|
@ -58,7 +58,7 @@ const DragAndDrop = (props) => {
|
||||
}, []);
|
||||
|
||||
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 { readFile } = VirtualBgService;
|
||||
|
Loading…
Reference in New Issue
Block a user