From 5f59453548bb5aca23d016b14ab8af3f9b73fdc7 Mon Sep 17 00:00:00 2001 From: prlanzarin <4529051+prlanzarin@users.noreply.github.com> Date: Thu, 18 Apr 2024 22:44:45 -0300 Subject: [PATCH] fix: crash at meeting-ended due to undefined access + incorrect meetingID Fixes an undefined access crash at the meeting-ended component caused by trying to access a property of a nullish user document. Fixes incorrect access to the meetingId property of the user document - currently fetched as meetingID, which doesn't exist. --- .../imports/ui/components/meeting-ended/component.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bigbluebutton-html5/imports/ui/components/meeting-ended/component.jsx b/bigbluebutton-html5/imports/ui/components/meeting-ended/component.jsx index 9c33f6cf5e..67b2d7df5b 100755 --- a/bigbluebutton-html5/imports/ui/components/meeting-ended/component.jsx +++ b/bigbluebutton-html5/imports/ui/components/meeting-ended/component.jsx @@ -142,7 +142,8 @@ class MeetingEnded extends PureComponent { this.localUserRole = user.role; } - const meeting = Meetings.findOne({ id: user?.meetingID }); + const meetingID = user?.meetingId || Auth.meetingID; + const meeting = Meetings.findOne({ id: meetingID }); if (meeting) { this.endWhenNoModeratorMinutes = meeting.durationProps.endWhenNoModeratorDelayInMinutes;