1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Actual fix

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2022-02-08 10:45:04 -05:00
parent e68aa43913
commit 56e7a54b18

View File

@ -63,7 +63,7 @@ class NonInjectedSidebarItem extends React.Component<SidebarItemProps & Dependen
}
@computed get isExpandable(): boolean {
return Boolean(this.props.children);
return React.Children.count(this.props.children) > 0;
}
toggleExpand = () => {