Skip to content

Commit

Permalink
fix(gatsby-plugin-cms): null cms nodes were preventing stores from bu…
Browse files Browse the repository at this point in the history
…ilding
  • Loading branch information
Ícaro Azevedo authored Aug 26, 2021
1 parent 0c30a73 commit 0270037
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/gatsby-plugin-cms/src/gatsby-node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export const sourceNodes = async (
const nodes = await Promise.all([
fetchAllRemoteNodes(gatsbyApi, options),
fetchAllLocalNodes(gatsbyApi),
]).then(([x, y]) => [...x, ...y])
]).then(([x, y]) => [...x, ...y].filter(Boolean))

createCmsSchemaCustomization(gatsbyApi, nodes)

Expand Down

0 comments on commit 0270037

Please sign in to comment.