mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
refactor: remove isPrivate (#61952)
This commit is contained in:
committed by
GitHub
parent
918e0abb9d
commit
12b5905c60
@@ -45,7 +45,6 @@ exports.buildChallenges = async function buildChallenges() {
|
||||
}, []);
|
||||
|
||||
const builtChallenges = blocks
|
||||
.filter(block => !block.isPrivate)
|
||||
.map(({ challenges }) => challenges)
|
||||
.reduce((accu, current) => accu.concat(current), []);
|
||||
return builtChallenges;
|
||||
|
||||
@@ -102,8 +102,6 @@ exports.createChallengePages = function (
|
||||
id,
|
||||
isLastChallengeInBlock
|
||||
} = node.challenge;
|
||||
// TODO: challengeType === 7 and isPrivate are the same, right? If so, we
|
||||
// should remove one of them.
|
||||
|
||||
createPage({
|
||||
path: slug,
|
||||
|
||||
Reference in New Issue
Block a user