From 28556e030cf4826e6a3a014b5f4c89d354f2cea5 Mon Sep 17 00:00:00 2001 From: Robert Pintilii Date: Tue, 22 Mar 2022 13:10:08 +0200 Subject: [PATCH] fix(settings-dialog) Fix crash (#11191) Fixes crash when the participant becomes moderator while the dialog is open --- .../settings/components/web/SettingsDialog.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/react/features/settings/components/web/SettingsDialog.js b/react/features/settings/components/web/SettingsDialog.js index 35c6c478e..09fc9fc46 100644 --- a/react/features/settings/components/web/SettingsDialog.js +++ b/react/features/settings/components/web/SettingsDialog.js @@ -200,10 +200,10 @@ function _mapStateToProps(state) { return { ...newProps, - followMeEnabled: tabState.followMeEnabled, - startAudioMuted: tabState.startAudioMuted, - startVideoMuted: tabState.startVideoMuted, - startReactionsMuted: tabState.startReactionsMuted + followMeEnabled: tabState?.followMeEnabled, + startAudioMuted: tabState?.startAudioMuted, + startVideoMuted: tabState?.startVideoMuted, + startReactionsMuted: tabState?.startReactionsMuted }; }, styles: 'settings-pane moderator-pane', @@ -242,11 +242,11 @@ function _mapStateToProps(state) { return { ...newProps, - currentFramerate: tabState.currentFramerate, - currentLanguage: tabState.currentLanguage, - hideSelfView: tabState.hideSelfView, - showPrejoinPage: tabState.showPrejoinPage, - enabledNotifications: tabState.enabledNotifications + currentFramerate: tabState?.currentFramerate, + currentLanguage: tabState?.currentLanguage, + hideSelfView: tabState?.hideSelfView, + showPrejoinPage: tabState?.showPrejoinPage, + enabledNotifications: tabState?.enabledNotifications }; }, styles: 'settings-pane more-pane',