Skip to content

Commit

Permalink
fix issue with warm builds
Browse files Browse the repository at this point in the history
  • Loading branch information
axe312ger committed Apr 27, 2021
1 parent d9e716c commit dbbb6f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/gatsby-source-contentful/src/normalize.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ exports.buildResolvableSet = ({
}) => {
const resolvable = new Set()
existingNodes.forEach(node => {
if (node.internal.owner === `gatsby-source-contentful` && node.sys.id) {
if (node.internal.owner === `gatsby-source-contentful` && node?.sys?.id) {
// We need to add only root level resolvable (assets and entries)
// Derived nodes (markdown or JSON) will be recreated if needed.
resolvable.add(generateReferenceId(node))
Expand Down

0 comments on commit dbbb6f9

Please sign in to comment.