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 { return {
...newProps, ...newProps,
followMeEnabled: tabState.followMeEnabled, followMeEnabled: tabState?.followMeEnabled,
startAudioMuted: tabState.startAudioMuted, startAudioMuted: tabState?.startAudioMuted,
startVideoMuted: tabState.startVideoMuted, startVideoMuted: tabState?.startVideoMuted,
startReactionsMuted: tabState.startReactionsMuted startReactionsMuted: tabState?.startReactionsMuted
}; };
}, },
styles: 'settings-pane moderator-pane', styles: 'settings-pane moderator-pane',
@ -242,11 +242,11 @@ function _mapStateToProps(state) {
return { return {
...newProps, ...newProps,
currentFramerate: tabState.currentFramerate, currentFramerate: tabState?.currentFramerate,
currentLanguage: tabState.currentLanguage, currentLanguage: tabState?.currentLanguage,
hideSelfView: tabState.hideSelfView, hideSelfView: tabState?.hideSelfView,
showPrejoinPage: tabState.showPrejoinPage, showPrejoinPage: tabState?.showPrejoinPage,
enabledNotifications: tabState.enabledNotifications enabledNotifications: tabState?.enabledNotifications
}; };
}, },
styles: 'settings-pane more-pane', styles: 'settings-pane more-pane',