From a12652eb36c57099149f9948e8abf8fc6f662207 Mon Sep 17 00:00:00 2001 From: Ashish Baravaliya Date: Mon, 19 Jun 2023 13:36:26 -0400 Subject: [PATCH 1/2] fix: comparing class name so it wont highlight --- src/components/CategoryList/CategoryList.react.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/CategoryList/CategoryList.react.js b/src/components/CategoryList/CategoryList.react.js index 82afff31c5..d549c63bff 100644 --- a/src/components/CategoryList/CategoryList.react.js +++ b/src/components/CategoryList/CategoryList.react.js @@ -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') From 4950ffe73c14527b3af5ca48901f8e764a997163 Mon Sep 17 00:00:00 2001 From: Manuel <5673677+mtrezza@users.noreply.github.com> Date: Mon, 19 Jun 2023 21:04:26 +0200 Subject: [PATCH 2/2] Update src/components/CategoryList/CategoryList.react.js Signed-off-by: Manuel <5673677+mtrezza@users.noreply.github.com> --- src/components/CategoryList/CategoryList.react.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/CategoryList/CategoryList.react.js b/src/components/CategoryList/CategoryList.react.js index d549c63bff..5b901d81e3 100644 --- a/src/components/CategoryList/CategoryList.react.js +++ b/src/components/CategoryList/CategoryList.react.js @@ -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) && id === this.props.current) { + 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')