fix schema type conflicts

Signed-off-by: Michal Piechowiak <misiek.piechowiak@gmail.com>
This commit is contained in:
Michal Piechowiak 2018-04-12 16:30:24 +02:00
parent 3bbd0521d0
commit b00be20212

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,