Merge pull request #97 from pieh/fix-type-conflict
fix schema type conflicts
This commit is contained in:
commit
f09cf63c38
1 changed files with 2 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue