From 774f8c74df17a63c645c24be57fda8ff660d13ff Mon Sep 17 00:00:00 2001 From: rashmi73 <41687423+rashmi73@users.noreply.github.com> Date: Thu, 10 Sep 2020 04:35:25 +0530 Subject: [PATCH 1/6] Update FilterPanel.jsx --- src/shared/containers/challenge-listing/FilterPanel.jsx | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/shared/containers/challenge-listing/FilterPanel.jsx b/src/shared/containers/challenge-listing/FilterPanel.jsx index 7fe064ce44..c161b03d44 100644 --- a/src/shared/containers/challenge-listing/FilterPanel.jsx +++ b/src/shared/containers/challenge-listing/FilterPanel.jsx @@ -64,12 +64,6 @@ export class Container extends React.Component { const query = qs.parse(window.location.search.slice(1)); if (query.filter && !filterState.track) { setFilterState(query.filter); - } else { - const trackStatus = localStorage.getItem('trackStatus'); - const filterObj = trackStatus ? JSON.parse(trackStatus) : null; - if (filterObj) { - setFilterState(filterObj); - } } } From 8227ebd1b9b1ea6f3e8b319ebe08d3bc33450c73 Mon Sep 17 00:00:00 2001 From: rashmi73 <41687423+rashmi73@users.noreply.github.com> Date: Thu, 10 Sep 2020 19:58:37 +0530 Subject: [PATCH 2/6] Update ChallengeFilters.jsx --- .../components/challenge-listing/Filters/ChallengeFilters.jsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/shared/components/challenge-listing/Filters/ChallengeFilters.jsx b/src/shared/components/challenge-listing/Filters/ChallengeFilters.jsx index 2ed2b5684d..cdb32d3e76 100644 --- a/src/shared/components/challenge-listing/Filters/ChallengeFilters.jsx +++ b/src/shared/components/challenge-listing/Filters/ChallengeFilters.jsx @@ -8,7 +8,6 @@ import { challenge as challengeUtils } from 'topcoder-react-lib'; import { COMPETITION_TRACKS as TRACKS } from 'utils/tc'; import _ from 'lodash'; -import localStorage from 'localStorage'; import ChallengeSearchBar from './ChallengeSearchBar'; import EditTrackPanel from './EditTrackPanel'; import FiltersIcon from './FiltersSwitch/filters-icon.svg'; @@ -55,7 +54,6 @@ export default function ChallengeFilters({ const act = on ? Filter.addTrack : Filter.removeTrack; const filterObj = act(filterState, track); const newFilterObj = _.pick(filterObj, 'tracks'); - localStorage.setItem('trackStatus', JSON.stringify(newFilterObj)); setFilterState(filterObj); }; From fe9e708007ddd759c17cef19ec963f2bdba9fa20 Mon Sep 17 00:00:00 2001 From: rashmi73 <41687423+rashmi73@users.noreply.github.com> Date: Thu, 10 Sep 2020 20:01:02 +0530 Subject: [PATCH 3/6] Update index.jsx --- .../components/challenge-listing/Filters/FiltersPanel/index.jsx | 1 - 1 file changed, 1 deletion(-) diff --git a/src/shared/components/challenge-listing/Filters/FiltersPanel/index.jsx b/src/shared/components/challenge-listing/Filters/FiltersPanel/index.jsx index a3320e0735..a5f71d344b 100644 --- a/src/shared/components/challenge-listing/Filters/FiltersPanel/index.jsx +++ b/src/shared/components/challenge-listing/Filters/FiltersPanel/index.jsx @@ -349,7 +349,6 @@ export default function FiltersPanel({ setFilterState({}); selectCommunity(defaultCommunityId); setSearchText(''); - localStorage.setItem('trackStatus', JSON.stringify({})); }} size="sm" theme={{ button: style.button }} From 01405d9e92e0d869a690e0cc91a97b1881d103e4 Mon Sep 17 00:00:00 2001 From: rashmi73 <41687423+rashmi73@users.noreply.github.com> Date: Thu, 10 Sep 2020 20:01:52 +0530 Subject: [PATCH 4/6] Update FilterPanel.jsx --- src/shared/containers/challenge-listing/FilterPanel.jsx | 1 - 1 file changed, 1 deletion(-) diff --git a/src/shared/containers/challenge-listing/FilterPanel.jsx b/src/shared/containers/challenge-listing/FilterPanel.jsx index c161b03d44..df1a09565d 100644 --- a/src/shared/containers/challenge-listing/FilterPanel.jsx +++ b/src/shared/containers/challenge-listing/FilterPanel.jsx @@ -10,7 +10,6 @@ import shortId from 'shortid'; import FilterPanel from 'components/challenge-listing/Filters/ChallengeFilters'; import PT from 'prop-types'; import React from 'react'; -import localStorage from 'localStorage'; import sidebarActions from 'actions/challenge-listing/sidebar'; import { BUCKETS, isReviewOpportunitiesBucket } from 'utils/challenge-listing/buckets'; import { bindActionCreators } from 'redux'; From 1310b69f5b1d3e0e2251d04da1f9ca05054c04d5 Mon Sep 17 00:00:00 2001 From: rashmi73 <41687423+rashmi73@users.noreply.github.com> Date: Thu, 10 Sep 2020 20:12:56 +0530 Subject: [PATCH 5/6] Update ChallengeFilters.jsx --- .../components/challenge-listing/Filters/ChallengeFilters.jsx | 1 - 1 file changed, 1 deletion(-) diff --git a/src/shared/components/challenge-listing/Filters/ChallengeFilters.jsx b/src/shared/components/challenge-listing/Filters/ChallengeFilters.jsx index cdb32d3e76..249582b835 100644 --- a/src/shared/components/challenge-listing/Filters/ChallengeFilters.jsx +++ b/src/shared/components/challenge-listing/Filters/ChallengeFilters.jsx @@ -53,7 +53,6 @@ export default function ChallengeFilters({ const switchTrack = (track, on) => { const act = on ? Filter.addTrack : Filter.removeTrack; const filterObj = act(filterState, track); - const newFilterObj = _.pick(filterObj, 'tracks'); setFilterState(filterObj); }; From ed9025efb693193ca53158c9c7b2cd2a3c54a243 Mon Sep 17 00:00:00 2001 From: rashmi73 <41687423+rashmi73@users.noreply.github.com> Date: Thu, 10 Sep 2020 20:19:12 +0530 Subject: [PATCH 6/6] Update ChallengeFilters.jsx --- .../components/challenge-listing/Filters/ChallengeFilters.jsx | 1 - 1 file changed, 1 deletion(-) diff --git a/src/shared/components/challenge-listing/Filters/ChallengeFilters.jsx b/src/shared/components/challenge-listing/Filters/ChallengeFilters.jsx index 249582b835..4866ffdd4e 100644 --- a/src/shared/components/challenge-listing/Filters/ChallengeFilters.jsx +++ b/src/shared/components/challenge-listing/Filters/ChallengeFilters.jsx @@ -6,7 +6,6 @@ import PT from 'prop-types'; import SwitchWithLabel from 'components/SwitchWithLabel'; import { challenge as challengeUtils } from 'topcoder-react-lib'; import { COMPETITION_TRACKS as TRACKS } from 'utils/tc'; -import _ from 'lodash'; import ChallengeSearchBar from './ChallengeSearchBar'; import EditTrackPanel from './EditTrackPanel';