We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 887b387 + 7de2daf commit a1415bbCopy full SHA for a1415bb
src/actions/challenges.js
@@ -140,9 +140,6 @@ export function loadChallengesByPage (
140
if (filterSortBy) {
141
filters['sortBy'] = filterSortBy
142
}
143
- if (userId) {
144
- filters['memberId'] = userId
145
- }
146
if (filterSortOrder) {
147
filters['sortOrder'] = filterSortOrder
148
@@ -153,6 +150,10 @@ export function loadChallengesByPage (
153
150
filters['projectId'] = projectId
154
151
} else if (_.isObject(projectId) && projectId.value > 0) {
155
152
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
156
+ filters['memberId'] = userId
157
158
159
if (status === 'all') {
0 commit comments