Skip to content

Commit

Permalink
Merge pull request #1522 from topcoder-platform/release_0.20.5
Browse files Browse the repository at this point in the history
Release 0.20.5
  • Loading branch information
jmgasper authored Apr 21, 2023
2 parents 887b387 + 7de2daf commit a1415bb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/actions/challenges.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,6 @@ export function loadChallengesByPage (
if (filterSortBy) {
filters['sortBy'] = filterSortBy
}
if (userId) {
filters['memberId'] = userId
}
if (filterSortOrder) {
filters['sortOrder'] = filterSortOrder
}
Expand All @@ -153,6 +150,10 @@ export function loadChallengesByPage (
filters['projectId'] = projectId
} else if (_.isObject(projectId) && projectId.value > 0) {
filters['projectId'] = projectId.value
} else if (userId) {
// Note that we only add the memberId field if *no* project ID is given,
// so that the list of *all challenges shows only those that the member is on
filters['memberId'] = userId
}

if (status === 'all') {
Expand Down

0 comments on commit a1415bb

Please sign in to comment.