Skip to content

Commit e821505

Browse files
Include type/track IDs as they were previously overwritten
1 parent 08cbc27 commit e821505

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/services/ChallengeService.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,9 @@ async function searchChallenges (currentUser, criteria) {
110110
const perPage = criteria.perPage || 20
111111
const boolQuery = []
112112

113-
const includedTrackIds = []
114-
const includedTypeIds = []
113+
const includedTrackIds = _.isArray(criteria.trackIds) ? criteria.trackIds : []
114+
115+
const includedTypeIds = _.isArray(criteria.typeIds) ? criteria.typeIds : []
115116

116117
if (criteria.type) {
117118
const typeSearchRes = await ChallengeTypeService.searchChallengeTypes({ abbreviation: criteria.type })

0 commit comments

Comments
 (0)