Skip to content

Commit bd9aa27

Browse files
committed
fix: using saved challenge types in filter state
topcoder-platform#5259
1 parent 6a59b7a commit bd9aa27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shared/containers/challenge-listing/FilterPanel.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ export class Container extends React.Component {
9999
validTypes,
100100
} = this.props;
101101

102-
if (validTypes.length && !this.initialDefaultChallengeTypes) {
102+
if (!filterState.types.length && validTypes.length && !this.initialDefaultChallengeTypes) {
103103
setFilterState({
104104
..._.clone(filterState),
105105
types: validTypes.map(item => item.abbreviation),

0 commit comments

Comments
 (0)