fix(client): handle pure js challenges in multifile editor (#54438)

This commit is contained in:
Oliver Eyton-Williams
2024-04-24 20:46:11 +02:00
committed by GitHub
parent d8861f3c85
commit 6781457c7a
111 changed files with 131 additions and 129 deletions
@@ -169,10 +169,12 @@ function getProjectPreviewConfig(challenge, allChallengeEdges) {
showProjectPreview:
challengeOrder === 0 &&
usesMultifileEditor &&
// TODO: handle the special cases better. Create a meta property for
// showProjectPreview, maybe? Then we can remove all the following cases
challengeType !== challengeTypes.multifileCertProject &&
challengeType !== challengeTypes.multifilePythonCertProject &&
// TODO: revert this to enable project previews for python challenges
challengeType !== challengeTypes.python,
challengeType !== challengeTypes.python &&
challengeType !== challengeTypes.js,
challengeData: {
challengeType: lastChallenge.challengeType,
challengeFiles: projectPreviewChallengeFiles