Skip to content

Commit

Permalink
fix: users were unable to develop a store in an account without CMS p…
Browse files Browse the repository at this point in the history
…ages (#969)
  • Loading branch information
Ícaro Azevedo authored Sep 22, 2021
1 parent 05b7de0 commit 7b28a4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/gatsby-plugin-cms/src/node-api/cms/fetchNodes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export const fetchAllNodes = async (
const { edges, pageInfo } = pages
const nodes = edges.map((x: any) => x.node)

after = edges[edges.length - 1].cursor
after = edges[edges.length - 1]?.cursor
hasNextPage = pageInfo.hasNextPage
data = [...data, ...nodes]
}
Expand Down

0 comments on commit 7b28a4e

Please sign in to comment.