Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

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

Robert Pintilii28556e030cf4
diff --git a/react/features/settings/components/web/SettingsDialog.js b/react/features/settings/components/web/SettingsDialog.js
index 35c6c478ea..09fc9fc467 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',