Skip to content

Commit 0a5c95c

Browse files
Merge pull request #5052 from topcoder-platform/Issue-4976
fix side impact
2 parents bd61d11 + 944b0fd commit 0a5c95c

File tree

1 file changed

+5
-5
lines changed
  • src/shared/components/challenge-listing/Filters/FiltersPanel

1 file changed

+5
-5
lines changed

src/shared/components/challenge-listing/Filters/FiltersPanel/index.jsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -181,11 +181,11 @@ export default function FiltersPanel({
181181
};
182182

183183
const communityOps = communityFilters.filter(community => (
184-
!community.hidden && community.groupIds && community.groupIds.length > 0
184+
(!community.hidden && community.groupIds && community.groupIds.length > 0) || community.communityName === 'All'
185185
))
186186
.map(community => ({
187187
label: community.communityName,
188-
value: community.groupIds[0],
188+
value: community.communityName === 'All' ? '' : community.groupIds[0],
189189
name: community.communityName,
190190
data: getLabel(community),
191191
}));
@@ -244,9 +244,9 @@ export default function FiltersPanel({
244244
id="community-select"
245245
// onChange={selectCommunity}
246246
onChange={(value) => {
247-
// const group = value;
248-
// setFilterState({ ..._.clone(filterState), groups: group === '' ? [] : [group] });
249-
setFilterState({ ..._.clone(filterState), groups: [value] });
247+
const group = value;
248+
setFilterState({ ..._.clone(filterState), groups: group === '' ? [] : [group] });
249+
// setFilterState({ ..._.clone(filterState), groups: [value] });
250250
}}
251251
options={communityOps}
252252
simpleValue

0 commit comments

Comments
 (0)