File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
__tests__/shared/components/challenge-listing/Filters/__snapshots__
components/challenge-listing/Filters/FiltersPanel Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ exports[`Matches shallow shapshot 1`] = `
90
90
</div >,
91
91
" label" : " Sample community" ,
92
92
" name" : " Sample community" ,
93
- " value" : " 123 " ,
93
+ " value" : " " ,
94
94
},
95
95
]
96
96
}
@@ -286,7 +286,7 @@ exports[`Matches shallow shapshot 2`] = `
286
286
</div >,
287
287
" label" : " Sample community" ,
288
288
" name" : " Sample community" ,
289
- " value" : " 123 " ,
289
+ " value" : " " ,
290
290
},
291
291
]
292
292
}
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ function getListInit(uuid) {
38
38
* @return {Promise }
39
39
*/
40
40
function getListDone ( uuid , auth ) {
41
- const groups = _ . get ( auth , 'profile.groups' , [ ] ) . map ( g => g . oldId ) ;
41
+ const groups = _ . get ( auth , 'profile.groups' , [ ] ) . map ( g => g . id ) ;
42
42
return getCommunitiesService ( auth . tokenV3 )
43
43
. getList ( groups ) . then ( list => ( { list, uuid } ) ) ;
44
44
}
Original file line number Diff line number Diff line change @@ -182,7 +182,7 @@ export default function FiltersPanel({
182
182
const communityOps = communityFilters . filter ( community => ! community . hidden )
183
183
. map ( community => ( {
184
184
label : community . communityName ,
185
- value : community . communityId ,
185
+ value : community . groupIds && community . groupIds . length > 0 ? community . groupIds [ 0 ] : '' ,
186
186
name : community . communityName ,
187
187
data : getLabel ( community ) ,
188
188
} ) ) ;
You can’t perform that action at this time.
0 commit comments