File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
src/shared/components/challenge-listing/Filters Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import PT from 'prop-types';
6
6
import SwitchWithLabel from 'components/SwitchWithLabel' ;
7
7
import { challenge as challengeUtils } from 'topcoder-react-lib' ;
8
8
import { COMPETITION_TRACKS as TRACKS } from 'utils/tc' ;
9
+ import _ from 'lodash' ;
9
10
10
11
import localStorage from 'localStorage' ;
11
12
import ChallengeSearchBar from './ChallengeSearchBar' ;
@@ -53,7 +54,8 @@ export default function ChallengeFilters({
53
54
const switchTrack = ( track , on ) => {
54
55
const act = on ? Filter . addTrack : Filter . removeTrack ;
55
56
const filterObj = act ( filterState , track ) ;
56
- localStorage . setItem ( 'trackStatus' , JSON . stringify ( filterObj ) ) ;
57
+ const newFilterObj = _ . omit ( filterObj , 'text' ) ;
58
+ localStorage . setItem ( 'trackStatus' , JSON . stringify ( newFilterObj ) ) ;
57
59
setFilterState ( filterObj ) ;
58
60
} ;
59
61
You can’t perform that action at this time.
0 commit comments