mirror of
https://github.com/oxen-io/session-desktop.git
synced 2023-12-14 02:12:57 +01:00
fix errors on no callback set for tab switch
This commit is contained in:
parent
31b98b71be
commit
9921be8fcb
|
@ -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);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue