fix: hide isHidden challenges from hotkey nav

This commit is contained in:
Oliver Eyton-Williams
2020-05-22 18:04:25 +02:00
committed by Mrugesh Mohapatra
parent f1c9b08cf3
commit 48532d6ccb
2 changed files with 6 additions and 5 deletions

View File

@@ -67,12 +67,11 @@ exports.createChallengePages = createPage => ({ node }, index, thisArray) => {
required = [],
template,
challengeType,
id,
isHidden
id
} = node;
// TODO: challengeType === 7 and isPrivate are the same, right? If so, we
// should remove one of them.
if (challengeType === 7 || isHidden) {
if (challengeType === 7) {
return null;
}