mirror of
https://github.com/zoriya/flood.git
synced 2026-05-29 09:41:49 +00:00
Sidebar: do not display untagged when there is none
This commit is contained in:
@@ -35,6 +35,9 @@ class SidebarFilter extends React.Component<SidebarFilterProps> {
|
||||
id: 'filter.all',
|
||||
});
|
||||
} else if (this.props.name === 'untagged') {
|
||||
if (this.props.count === 0) {
|
||||
return null;
|
||||
}
|
||||
name = this.props.intl.formatMessage({
|
||||
id: 'filter.untagged',
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user