fix(settings-dialog) Fix crash (#11191)

Fixes crash when the participant becomes moderator while the dialog is open
This commit is contained in:
Robert Pintilii 2022-03-22 13:10:08 +02:00 committed by GitHub
parent e54685a566
commit 28556e030c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 9 deletions

View File

@ -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',