Merge pull request #97 from pieh/fix-type-conflict

fix schema type conflicts
This commit is contained in:
Kyle Mathews 2018-04-14 17:09:52 -07:00 committed by GitHub
commit f09cf63c38
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -36,8 +36,8 @@ exports.createPages = ({ graphql, boundActionCreators }) => {
const posts = result.data.allMarkdownRemark.edges; const posts = result.data.allMarkdownRemark.edges;
_.each(posts, (post, index) => { _.each(posts, (post, index) => {
const previous = index === posts.length - 1 ? false : posts[index + 1].node; const previous = index === posts.length - 1 ? null : posts[index + 1].node;
const next = index === 0 ? false : posts[index - 1].node; const next = index === 0 ? null : posts[index - 1].node;
createPage({ createPage({
path: post.node.fields.slug, path: post.node.fields.slug,