StatusFilters: hide checking and error filters when none exists

These two states are not normal states.
This commit is contained in:
Jesse Chan
2020-08-12 18:39:15 +08:00
parent fa84484d59
commit bba21a5be2
@@ -35,6 +35,12 @@ class SidebarFilter extends React.Component {
});
}
if (this.props.slug === 'checking' || this.props.slug === 'error') {
if (this.props.count === 0) {
return null;
}
}
return (
<li className={classNames} onClick={this.handleClick}>
{this.props.icon}