Skip to content

Commit

Permalink
Modifying the data type being used for allChallenges in api_processor… (
Browse files Browse the repository at this point in the history
#401)

* Modifying the data type being used for allChallenges in api_processor from array to object.

* Updating allChallenges to accommodate the FCC response changes for curriculum data and removing redundant map iteration.

---------

Co-authored-by: Utsab Saha <[email protected]>
  • Loading branch information
ngillux and utsab authored Jul 31, 2023
1 parent 29457a8 commit a8de3b5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions util/api_proccesor.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,10 @@ export function createDashboardObject(superblock) {
*/
selector: course,
dashedName: course,
allChallenges: currBlock[certificationName]['blocks'][course][
'challenges'
]['challengeOrder'].map(x => x[0]),
allChallenges:
currBlock[certificationName]['blocks'][course]['challenges'][
'challengeOrder'
],
order:
currBlock[certificationName]['blocks'][course]['challenges'][
'order'
Expand Down

0 comments on commit a8de3b5

Please sign in to comment.