File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
src/shared/components/challenge-listing/Filters/FiltersPanel Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -181,11 +181,11 @@ export default function FiltersPanel({
181
181
} ;
182
182
183
183
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'
185
185
) )
186
186
. map ( community => ( {
187
187
label : community . communityName ,
188
- value : community . groupIds [ 0 ] ,
188
+ value : community . communityName === 'All' ? '' : community . groupIds [ 0 ] ,
189
189
name : community . communityName ,
190
190
data : getLabel ( community ) ,
191
191
} ) ) ;
@@ -244,9 +244,9 @@ export default function FiltersPanel({
244
244
id = "community-select"
245
245
// onChange={selectCommunity}
246
246
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] });
250
250
} }
251
251
options = { communityOps }
252
252
simpleValue
You can’t perform that action at this time.
0 commit comments