Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
fix(welcome-page): make Tabs more resilient to bad props
Leonard Kim12c18657d580
diff --git a/react/features/welcome/components/Tabs.js b/react/features/welcome/components/Tabs.jsindex 67e1b2cdae..6ed8c31f5f 100644--- a/react/features/welcome/components/Tabs.js+++ b/react/features/welcome/components/Tabs.js@@ -29,6 +29,11 @@ type Props = {**/export default class Tabs extends Component<Props> {+ static defaultProps = {+ tabs: [],+ selected: 0+ };+/*** Implements the React Components's render method.*@@ -36,7 +41,9 @@ export default class Tabs extends Component<Props> {*/render() {const { onSelect, selected, tabs } = this.props;- const { content } = tabs[selected];+ const { content = null } = tabs.length+ ? tabs[Math.min(selected, tabs.length - 1)]+ : {};return (<div className = 'tab-container'>