File tree Expand file tree Collapse file tree 3 files changed +0
-12
lines changed
components/challenge-listing/Filters
containers/challenge-listing Expand file tree Collapse file tree 3 files changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -6,9 +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' ;
10
9
11
- import localStorage from 'localStorage' ;
12
10
import ChallengeSearchBar from './ChallengeSearchBar' ;
13
11
import EditTrackPanel from './EditTrackPanel' ;
14
12
import FiltersIcon from './FiltersSwitch/filters-icon.svg' ;
@@ -54,8 +52,6 @@ export default function ChallengeFilters({
54
52
const switchTrack = ( track , on ) => {
55
53
const act = on ? Filter . addTrack : Filter . removeTrack ;
56
54
const filterObj = act ( filterState , track ) ;
57
- const newFilterObj = _ . pick ( filterObj , 'tracks' ) ;
58
- localStorage . setItem ( 'trackStatus' , JSON . stringify ( newFilterObj ) ) ;
59
55
setFilterState ( filterObj ) ;
60
56
} ;
61
57
Original file line number Diff line number Diff line change @@ -349,7 +349,6 @@ export default function FiltersPanel({
349
349
setFilterState ( { } ) ;
350
350
selectCommunity ( defaultCommunityId ) ;
351
351
setSearchText ( '' ) ;
352
- localStorage . setItem ( 'trackStatus' , JSON . stringify ( { } ) ) ;
353
352
} }
354
353
size = "sm"
355
354
theme = { { button : style . button } }
Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ import shortId from 'shortid';
10
10
import FilterPanel from 'components/challenge-listing/Filters/ChallengeFilters' ;
11
11
import PT from 'prop-types' ;
12
12
import React from 'react' ;
13
- import localStorage from 'localStorage' ;
14
13
import sidebarActions from 'actions/challenge-listing/sidebar' ;
15
14
import { BUCKETS , isReviewOpportunitiesBucket } from 'utils/challenge-listing/buckets' ;
16
15
import { bindActionCreators } from 'redux' ;
@@ -64,12 +63,6 @@ export class Container extends React.Component {
64
63
const query = qs . parse ( window . location . search . slice ( 1 ) ) ;
65
64
if ( query . filter && ! filterState . track ) {
66
65
setFilterState ( query . filter ) ;
67
- } else {
68
- const trackStatus = localStorage . getItem ( 'trackStatus' ) ;
69
- const filterObj = trackStatus ? JSON . parse ( trackStatus ) : null ;
70
- if ( filterObj ) {
71
- setFilterState ( filterObj ) ;
72
- }
73
66
}
74
67
}
75
68
You can’t perform that action at this time.
0 commit comments