Skip to content

Commit 71b5d1e

Browse files
fix(gatsby-source-drupal): Add safety check for existence of datum. (#22213)
1 parent 2c08909 commit 71b5d1e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/gatsby-source-drupal/src/gatsby-node.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ exports.sourceNodes = async (
131131
_.each(allData, contentType => {
132132
if (!contentType) return
133133
_.each(contentType.data, datum => {
134+
if (!datum) return
134135
const node = nodeFromData(datum, createNodeId)
135136
nodes.set(node.id, node)
136137
})

0 commit comments

Comments
 (0)