Skip to content

Commit

Permalink
fix: Selecting a saved filter in data browser also highlights other f…
Browse files Browse the repository at this point in the history
…ilters with equal names (#2466)
  • Loading branch information
AshishBarvaliya committed Jun 23, 2023
1 parent 046356a commit 35360fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/CategoryList/CategoryList.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export default class CategoryList extends React.Component {
let count = c.count;
let className = id === this.props.current ? styles.active : '';
let selectedFilter = null;
if (this.state.openClasses.includes(id)) {
if (this.state.openClasses.includes(id) && id === this.props.current) {
const query = new URLSearchParams(this.props.params);
if (query.has('filters')) {
const queryFilter = query.get('filters')
Expand Down

0 comments on commit 35360fe

Please sign in to comment.