mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix(client): handle pure js challenges in multifile editor (#54438)
This commit is contained in:
committed by
GitHub
parent
d8861f3c85
commit
6781457c7a
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user