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(welcome-page) Fix error before joining a meeting from welcome page (#12718)

Horatiu Muresanc441e8abcaf0
diff --git a/react/features/welcome/components/AbstractWelcomePage.js b/react/features/welcome/components/AbstractWelcomePage.js
index 3ad2358983..e6273d5a72 100644
--- a/react/features/welcome/components/AbstractWelcomePage.js
+++ b/react/features/welcome/components/AbstractWelcomePage.js
@@ -274,7 +274,7 @@ export class AbstractWelcomePage<P: Props> extends Component<P, *> {
export function _mapStateToProps(state: Object) {
return {
_calendarEnabled: isCalendarEnabled(state),
- _deeplinkingCfg: state['features/base/config'].deeplinking,
+ _deeplinkingCfg: state['features/base/config'].deeplinking || {},
_enableInsecureRoomNameWarning: state['features/base/config'].enableInsecureRoomNameWarning || false,
_moderatedRoomServiceUrl: state['features/base/config'].moderatedRoomServiceUrl,
_recentListEnabled: isRecentListEnabled(),
diff --git a/react/features/welcome/components/WelcomePage.web.js b/react/features/welcome/components/WelcomePage.web.js
index 16fea18976..0484d4afab 100644
--- a/react/features/welcome/components/WelcomePage.web.js
+++ b/react/features/welcome/components/WelcomePage.web.js
@@ -346,14 +346,15 @@ class WelcomePage extends AbstractWelcomePage {
const {
t,
_deeplinkingCfg: {
- ios: { downloadLink: iosDownloadLink },
- android: {
- fDroidUrl,
- downloadLink: androidDownloadLink
- }
+ ios = {},
+ android = {}
}
} = this.props;
+ const { downloadLink: iosDownloadLink } = ios;
+
+ const { fDroidUrl, downloadLink: androidDownloadLink } = android;
+
return (<footer className = 'welcome-footer'>
<div className = 'welcome-footer-centered'>
<div className = 'welcome-footer-padded'>