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) fix when devices tab is not visible

Saúl Ibarra Corretgé398e170e2d4a
diff --git a/react/features/settings/components/web/SettingsDialog.tsx b/react/features/settings/components/web/SettingsDialog.tsx
index 6bcf12251f..9e79b30671 100644
--- a/react/features/settings/components/web/SettingsDialog.tsx
+++ b/react/features/settings/components/web/SettingsDialog.tsx
@@ -203,7 +203,7 @@ function _mapStateToProps(state: IReduxState, ownProps: any) {
return {
...newProps,
- selectedVideoInputId: videoTabState.selectedVideoInputId || newProps.selectedVideoInputId,
+ selectedVideoInputId: videoTabState?.selectedVideoInputId || newProps.selectedVideoInputId,
options: tabState.options
};
},