diff --git a/__tests__/shared/components/challenge-listing/Filters/__snapshots__/FiltersPanel.jsx.snap b/__tests__/shared/components/challenge-listing/Filters/__snapshots__/FiltersPanel.jsx.snap index a8b558a6b0..56f3b49c24 100644 --- a/__tests__/shared/components/challenge-listing/Filters/__snapshots__/FiltersPanel.jsx.snap +++ b/__tests__/shared/components/challenge-listing/Filters/__snapshots__/FiltersPanel.jsx.snap @@ -84,9 +84,10 @@ exports[`Matches shallow shapshot 1`] = ` options={ Array [ Object { - "label":
+ "data":
Sample community
, + "label": "Sample community", "name": "Sample community", "value": "123", }, @@ -299,9 +300,10 @@ exports[`Matches shallow shapshot 2`] = ` options={ Array [ Object { - "label":
+ "data":
Sample community
, + "label": "Sample community", "name": "Sample community", "value": "123", }, diff --git a/src/shared/components/challenge-listing/Filters/FiltersPanel/index.jsx b/src/shared/components/challenge-listing/Filters/FiltersPanel/index.jsx index e8e6614abd..c4f6f07fea 100644 --- a/src/shared/components/challenge-listing/Filters/FiltersPanel/index.jsx +++ b/src/shared/components/challenge-listing/Filters/FiltersPanel/index.jsx @@ -180,9 +180,10 @@ challenges in this sub community const communityOps = communityFilters.filter(community => !community.hidden) .map(community => ({ - label: getLabel(community), + label: community.communityName, value: community.communityId, name: community.communityName, + data: getLabel(community), })); const disableClearSaveFilterButtons = isSavingFilter || (