Skip to content

Commit 0e61189

Browse files
authored
Merge pull request #4693 from nursoltan-s/iss-4686
Issue 4686: Fix
2 parents 4308177 + 16f9e24 commit 0e61189

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/shared/components/challenge-listing/Filters/ChallengeFilters.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export default function ChallengeFilters({
5454
const switchTrack = (track, on) => {
5555
const act = on ? Filter.addTrack : Filter.removeTrack;
5656
const filterObj = act(filterState, track);
57-
const newFilterObj = _.omit(filterObj, 'text');
57+
const newFilterObj = _.pick(filterObj, 'tracks');
5858
localStorage.setItem('trackStatus', JSON.stringify(newFilterObj));
5959
setFilterState(filterObj);
6060
};

src/shared/components/challenge-listing/Filters/FiltersPanel/index.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,7 @@ export default function FiltersPanel({
348348
setFilterState({});
349349
selectCommunity(defaultCommunityId);
350350
setSearchText('');
351+
localStorage.setItem('trackStatus', JSON.stringify({}));
351352
}}
352353
size="sm"
353354
theme={{ button: style.button }}

0 commit comments

Comments
 (0)