Merge pull request #16338 from Bouncey/fix/mapInitialUI

fix(map): Render superBlock titles on initial render
This commit is contained in:
Berkeley Martinez 2017-12-28 10:35:14 -08:00 committed by GitHub
commit 4d3ee43ca3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -209,6 +209,7 @@ export function getChallenge(
) {
return map
.flatMap(({ entities, result: { superBlocks } }) => {
const superBlock = entities.superBlock;
const block = entities.block[blockDashedName];
const challenge = entities.challenge[challengeDashedName];
return Observable.if(
@ -226,6 +227,7 @@ export function getChallenge(
`/challenges/${block.dashedName}/${challenge.dashedName}` :
false,
entities: {
superBlock,
challenge: {
[challenge.dashedName]: mapChallengeToLang(challenge, lang)
}