fix (learn): add title to challenge meta for backend challenges (#38745)

This commit is contained in:
Hassaan Pasha
2020-05-07 21:26:58 +05:00
committed by GitHub
parent eba6da66cc
commit 7126bacf34

View File

@@ -126,6 +126,7 @@ export class BackEnd extends Component {
data: { data: {
challengeNode: { challengeNode: {
fields: { tests }, fields: { tests },
title,
challengeType challengeType
} }
}, },
@@ -133,7 +134,7 @@ export class BackEnd extends Component {
} = this.props; } = this.props;
initConsole(''); initConsole('');
initTests(tests); initTests(tests);
updateChallengeMeta({ ...challengeMeta, challengeType }); updateChallengeMeta({ ...challengeMeta, title, challengeType });
challengeMounted(challengeMeta.id); challengeMounted(challengeMeta.id);
} }