Skip to content

Commit 56c79db

Browse files
committed
Merge pull request #2965 from PrakashDurlabhji/issue_2786_1
issue 2786 fix
1 parent a651d29 commit 56c79db

File tree

2 files changed

+6
-3
lines changed
  • __tests__/shared/components/challenge-listing/Filters/__snapshots__
  • src/shared/components/challenge-listing/Filters/FiltersPanel

2 files changed

+6
-3
lines changed

__tests__/shared/components/challenge-listing/Filters/__snapshots__/FiltersPanel.jsx.snap

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,10 @@ exports[`Matches shallow shapshot 1`] = `
8484
options={
8585
Array [
8686
Object {
87-
"label": <div>
87+
"data": <div>
8888
Sample community
8989
</div>,
90+
"label": "Sample community",
9091
"name": "Sample community",
9192
"value": "123",
9293
},
@@ -299,9 +300,10 @@ exports[`Matches shallow shapshot 2`] = `
299300
options={
300301
Array [
301302
Object {
302-
"label": <div>
303+
"data": <div>
303304
Sample community
304305
</div>,
306+
"label": "Sample community",
305307
"name": "Sample community",
306308
"value": "123",
307309
},

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,10 @@ challenges in this sub community
180180

181181
const communityOps = communityFilters.filter(community => !community.hidden)
182182
.map(community => ({
183-
label: getLabel(community),
183+
label: community.communityName,
184184
value: community.communityId,
185185
name: community.communityName,
186+
data: getLabel(community),
186187
}));
187188

188189
const disableClearSaveFilterButtons = isSavingFilter || (

0 commit comments

Comments
 (0)