mirror of
https://github.com/zoriya/flood.git
synced 2026-06-05 03:39:24 +00:00
StatusFilters: hide checking and error filters when none exists
These two states are not normal states.
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user