From dbbb6f9ca2abdd554d350967842e6d9ba332fed4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benedikt=20R=C3=B6tsch?= Date: Thu, 22 Apr 2021 18:32:14 +0200 Subject: [PATCH] fix issue with warm builds --- packages/gatsby-source-contentful/src/normalize.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/gatsby-source-contentful/src/normalize.js b/packages/gatsby-source-contentful/src/normalize.js index 6b234c6018bb5..4631bdd1c5e0e 100644 --- a/packages/gatsby-source-contentful/src/normalize.js +++ b/packages/gatsby-source-contentful/src/normalize.js @@ -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))