Skip to content

Commit a0c773a

Browse files
committed
changes for issue #3331
1 parent 6224401 commit a0c773a

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/shared/containers/challenge-listing/Listing/index.jsx

+6-1
Original file line numberDiff line numberDiff line change
@@ -116,14 +116,19 @@ export class ListingContainer extends React.Component {
116116
getBackendFilter() {
117117
const {
118118
communitiesList,
119+
selectedCommunityId,
120+
groupIds,
119121
communityId,
120122
} = this.props;
121123
let { filter } = this.props;
122124
let communityFilter = communitiesList.data.find(
123-
item => item.communityId === communityId,
125+
item => item.communityId === selectedCommunityId,
124126
);
125127
if (communityFilter) communityFilter = communityFilter.challengeFilter;
126128
if (communityFilter) filter = combine(filter, communityFilter);
129+
if (communityId && groupIds.length > 0) {
130+
filter.groupIds = groupIds;
131+
}
127132
return {
128133
back: mapToBackend(filter),
129134
front: filter,

src/shared/routes/Communities/Zurich/Routes.jsx

+1
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ function Zurich({ base, meta, userGroups }) {
8181
meta,
8282
newChallengeDetails: true,
8383
ChallengeListingBanner,
84+
groupIds: meta.groupIds,
8485
})}
8586
exact
8687
path={`${base}/challenges`}

0 commit comments

Comments
 (0)