mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
refactor(client): replace Map's static query with page queries (#55792)
This commit is contained in:
committed by
GitHub
parent
7345989917
commit
8c0b459c2b
@@ -198,8 +198,7 @@ exports.createSuperBlockIntroPages = function (createPage) {
|
||||
return function (edge) {
|
||||
const {
|
||||
fields: { slug },
|
||||
frontmatter: { superBlock, certification },
|
||||
id
|
||||
frontmatter: { superBlock, certification, title }
|
||||
} = edge.node;
|
||||
|
||||
if (!certification) {
|
||||
@@ -215,8 +214,9 @@ exports.createSuperBlockIntroPages = function (createPage) {
|
||||
path: slug,
|
||||
component: superBlockIntro,
|
||||
context: {
|
||||
id,
|
||||
superBlock
|
||||
certification,
|
||||
superBlock,
|
||||
title
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user