Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit aa93811

Browse files
author
vikasrohit
committed
AS#112412760157010, Marathon Match link broken on Dashboard (for both challenge page and submissions) (Front end)
-- Adapted code for handling the singular values instead of array of values for componentId and problemId fields as per discussion in asana task.
1 parent 74d3e8a commit aa93811

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/filters/challengeLinks.filter.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ import _ from 'lodash'
1515
domain: CONSTANTS.domain,
1616
roundId: challenge.rounds[0].id,
1717
forumId: challenge.rounds[0].forumId,
18-
componentId: _.get(challenge, 'componentId[0]', ''),
18+
componentId: _.get(challenge, 'componentId', ''),
1919
challengeId: challenge.id,
20-
problemId: _.get(challenge, 'problemId[0]', '')
20+
problemId: _.get(challenge, 'problemId', '')
2121
}
2222
switch (type) {
2323
case 'forums':

0 commit comments

Comments
 (0)