fix errors on no callback set for tab switch

This commit is contained in:
Audric Ackermann 2020-01-07 15:07:56 +11:00
parent 31b98b71be
commit 9921be8fcb

View file

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