fix errors on no callback set for tab switch

pull/715/head
Audric Ackermann 5 years ago
parent 31b98b71be
commit 9921be8fcb

@ -110,6 +110,8 @@ export class LeftPaneSectionHeader extends React.Component<Props, State> {
this.setState({ this.setState({
selectedTab: tabType, selectedTab: tabType,
}); });
this.props.onTabSelected(tabType); if (this.props.onTabSelected) {
this.props.onTabSelected(tabType);
}
}; };
} }

Loading…
Cancel
Save