diff --git a/ts/components/session/LeftPaneSectionHeader.tsx b/ts/components/session/LeftPaneSectionHeader.tsx index c150653c8..53405b20c 100644 --- a/ts/components/session/LeftPaneSectionHeader.tsx +++ b/ts/components/session/LeftPaneSectionHeader.tsx @@ -110,6 +110,8 @@ export class LeftPaneSectionHeader extends React.Component { this.setState({ selectedTab: tabType, }); - this.props.onTabSelected(tabType); + if (this.props.onTabSelected) { + this.props.onTabSelected(tabType); + } }; }