diff --git a/packages/gatsby-source-drupal/src/utils.js b/packages/gatsby-source-drupal/src/utils.js index 1103a2ccff49e..03ed07466766c 100644 --- a/packages/gatsby-source-drupal/src/utils.js +++ b/packages/gatsby-source-drupal/src/utils.js @@ -310,6 +310,7 @@ ${JSON.stringify(nodeToUpdate, null, 4)} if (node.fields) { delete node.fields } + await actions.deleteNode(getNode(node.id)) node.internal.contentDigest = createContentDigest(node) createNode(node) reporter.log(`Updated node: ${node.id}`)