Sidebar: do not display untagged when there is none

This commit is contained in:
Jesse Chan
2020-09-28 09:58:17 +08:00
parent ab42dae278
commit ad51336956
@@ -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',
});