Skip to content

Commit

Permalink
fix: mOves MWPW-125515 fix to new repo
Browse files Browse the repository at this point in the history
  • Loading branch information
cmiqueo committed Mar 3, 2023
1 parent f19e7e9 commit ea99f20
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions react/src/js/components/Consonant/Container/Container.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,15 @@ const Container = (props) => {
const filterClearedState = getFilterItemClearedState(id, prevFilters);
return filterClearedState;
});

const urlParams = new URLSearchParams(window.location.search);
clearUrlState();
urlParams.forEach((value, key) => {
const chFilter = key.toLowerCase().replace('ch_', '').replace(' ', '-');
if (key.indexOf(filterGroupPrefix) !== 0 || !id.includes(chFilter)) {
setUrlState(key, value);
}
});
};

/**
Expand Down

0 comments on commit ea99f20

Please sign in to comment.