refactor(client): clean up gatsby-node (#55640)

Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
This commit is contained in:
Oliver Eyton-Williams
2024-08-02 10:29:44 +02:00
committed by GitHub
parent 149d6b52fa
commit 97279f5bc6
2 changed files with 130 additions and 184 deletions
@@ -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;