fix(settings-dialog) Fix crash (#11191)
Fixes crash when the participant becomes moderator while the dialog is open
This commit is contained in:
parent
e54685a566
commit
28556e030c
|
@ -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',
|
||||||
|
|
Loading…
Reference in New Issue