mirror of
https://github.com/vale981/Vulcan
synced 2025-03-06 10:01:40 -05:00
fix bug where All Categories didn't clear the category filter
This commit is contained in:
parent
37532d276d
commit
558f8fd676
1 changed files with 3 additions and 2 deletions
|
@ -33,7 +33,8 @@ class CategoriesList extends Component {
|
|||
|
||||
render() {
|
||||
|
||||
const currentQuery = _.clone(this.props.router.location.query);
|
||||
const allCategoriesQuery = _.clone(this.props.router.location.query);
|
||||
delete allCategoriesQuery.cat;
|
||||
const nestedCategories = this.getNestedCategories();
|
||||
|
||||
return (
|
||||
|
@ -45,7 +46,7 @@ class CategoriesList extends Component {
|
|||
id="categories-dropdown"
|
||||
>
|
||||
<div className="category-menu-item category-menu-item-all dropdown-item">
|
||||
<LinkContainer className="category-menu-item-title" to={{pathname:"/", query: currentQuery}}>
|
||||
<LinkContainer className="category-menu-item-title" to={{pathname:"/", query: allCategoriesQuery}}>
|
||||
<MenuItem eventKey={0}>
|
||||
<FormattedMessage id="categories.all"/>
|
||||
</MenuItem>
|
||||
|
|
Loading…
Add table
Reference in a new issue