Browse Source

fix: fix the parent node issue 🎉

main
Dustin Schau 7 years ago
parent
commit
251ef1e752
  1. 2
      plugins/gatsby-transformer-home-example-code/gatsby-node.js

2
plugins/gatsby-transformer-home-example-code/gatsby-node.js

@ -21,7 +21,7 @@ exports.onCreateNode = async ({actions, node, loadNodeContent}) => {
createNode({ createNode({
id: name, id: name,
children: [], children: [],
parent: 'EXAMPLES', parent: node.id,
code, code,
mdAbsolutePath: absolutePath.replace(/\.js$/, '.md'), mdAbsolutePath: absolutePath.replace(/\.js$/, '.md'),
internal: { internal: {

Loading…
Cancel
Save