From 4debc9e3f56073d1e58569793a59a71ba953112f Mon Sep 17 00:00:00 2001 From: Robert Long Date: Thu, 16 Dec 2021 10:10:55 -0800 Subject: [PATCH] Fix leaving call with screenshare active --- src/Room.jsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Room.jsx b/src/Room.jsx index b512edcd..07c04962 100644 --- a/src/Room.jsx +++ b/src/Room.jsx @@ -400,7 +400,10 @@ function InRoomView({ const participant = participants.find( (p) => p.usermediaCallFeed.userId === callFeed.userId ); - participant.screenshareCallFeed = callFeed; + + if (participant) { + participant.screenshareCallFeed = callFeed; + } } return participants;