From b00be202127b8b4bb522d470658e1b031edb5d65 Mon Sep 17 00:00:00 2001 From: Michal Piechowiak Date: Thu, 12 Apr 2018 16:30:24 +0200 Subject: [PATCH] fix schema type conflicts Signed-off-by: Michal Piechowiak --- gatsby-node.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gatsby-node.js b/gatsby-node.js index 607d2c7..cc4463e 100644 --- a/gatsby-node.js +++ b/gatsby-node.js @@ -36,8 +36,8 @@ exports.createPages = ({ graphql, boundActionCreators }) => { const posts = result.data.allMarkdownRemark.edges; _.each(posts, (post, index) => { - const previous = index === posts.length - 1 ? false : posts[index + 1].node; - const next = index === 0 ? false : posts[index - 1].node; + const previous = index === posts.length - 1 ? null : posts[index + 1].node; + const next = index === 0 ? null : posts[index - 1].node; createPage({ path: post.node.fields.slug,