Skip to content

Commit 635ae94

Browse files
issue 2786 fix
1 parent 84a0ae5 commit 635ae94

File tree

2 files changed

+10
-7
lines changed
  • __tests__/shared/components/challenge-listing/Filters/__snapshots__
  • src/shared/components/challenge-listing/Filters/FiltersPanel

2 files changed

+10
-7
lines changed

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

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,12 @@ exports[`Matches shallow shapshot 1`] = `
8484
options={
8585
Array [
8686
Object {
87-
"label": <div>
88-
Sample community
89-
</div>,
87+
"label": "Sample community",
9088
"name": "Sample community",
9189
"value": "123",
90+
"data": <div>
91+
Sample community
92+
</div>
9293
},
9394
]
9495
}
@@ -299,11 +300,12 @@ exports[`Matches shallow shapshot 2`] = `
299300
options={
300301
Array [
301302
Object {
302-
"label": <div>
303-
Sample community
304-
</div>,
303+
"label": "Sample community",
305304
"name": "Sample community",
306305
"value": "123",
306+
"data": <div>
307+
Sample community
308+
</div>
307309
},
308310
]
309311
}

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)