From bd9aa2758629735a3d94d8f44638d9d1dba1a495 Mon Sep 17 00:00:00 2001 From: gets0ul Date: Thu, 24 Dec 2020 23:32:44 +0700 Subject: [PATCH] fix: using saved challenge types in filter state https://github.com/topcoder-platform/community-app/issues/5259 --- src/shared/containers/challenge-listing/FilterPanel.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/containers/challenge-listing/FilterPanel.jsx b/src/shared/containers/challenge-listing/FilterPanel.jsx index 045710dd89..43ce2ff7da 100644 --- a/src/shared/containers/challenge-listing/FilterPanel.jsx +++ b/src/shared/containers/challenge-listing/FilterPanel.jsx @@ -99,7 +99,7 @@ export class Container extends React.Component { validTypes, } = this.props; - if (validTypes.length && !this.initialDefaultChallengeTypes) { + if (!filterState.types.length && validTypes.length && !this.initialDefaultChallengeTypes) { setFilterState({ ..._.clone(filterState), types: validTypes.map(item => item.abbreviation),