File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
src/shared/components/challenge-listing/Filters Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ export default function ChallengeFilters({
54
54
const switchTrack = ( track , on ) => {
55
55
const act = on ? Filter . addTrack : Filter . removeTrack ;
56
56
const filterObj = act ( filterState , track ) ;
57
- const newFilterObj = _ . omit ( filterObj , 'text ' ) ;
57
+ const newFilterObj = _ . pick ( filterObj , 'tracks ' ) ;
58
58
localStorage . setItem ( 'trackStatus' , JSON . stringify ( newFilterObj ) ) ;
59
59
setFilterState ( filterObj ) ;
60
60
} ;
Original file line number Diff line number Diff line change @@ -348,6 +348,7 @@ export default function FiltersPanel({
348
348
setFilterState ( { } ) ;
349
349
selectCommunity ( defaultCommunityId ) ;
350
350
setSearchText ( '' ) ;
351
+ localStorage . setItem ( 'trackStatus' , JSON . stringify ( { } ) ) ;
351
352
} }
352
353
size = "sm"
353
354
theme = { { button : style . button } }
You can’t perform that action at this time.
0 commit comments