mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
refactor(client): clean up gatsby-node (#55640)
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
This commit is contained in:
committed by
GitHub
parent
149d6b52fa
commit
97279f5bc6
@@ -146,6 +146,9 @@ exports.createChallengePages = function (createPage) {
|
||||
};
|
||||
};
|
||||
|
||||
// TODO: figure out a cleaner way to get the last challenge in a block. Create
|
||||
// it during the curriculum build process and attach it to the first challenge?
|
||||
// That would remove the need to analyse allChallengeEdges.
|
||||
function getProjectPreviewConfig(challenge, allChallengeEdges) {
|
||||
const { block, challengeOrder, challengeType, usesMultifileEditor } =
|
||||
challenge;
|
||||
|
||||
Reference in New Issue
Block a user