Skip to content

Commit 1752f38

Browse files
fix(gatsby-source-drupal): fix Image CDN optional chaining call (#35498) (#35511)
Co-authored-by: Tyler Barnes <[email protected]>
1 parent f938716 commit 1752f38

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ const getGatsbyImageCdnFields = async ({
6363
}
6464
}
6565

66-
const extraNodeData = fileNodesExtendedData?.get(node.id) || null
66+
const extraNodeData = fileNodesExtendedData?.get?.(node.id) || null
6767

6868
try {
6969
const { placeholderStyleName } = getOptions()

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

+2
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,7 @@ ${JSON.stringify(nodeToUpdate, null, 4)}
283283
createNodeId,
284284
getOptions().entityReferenceRevisions,
285285
pluginOptions,
286+
null,
286287
reporter
287288
)
288289

@@ -330,6 +331,7 @@ ${JSON.stringify(nodeToUpdate, null, 4)}
330331
createNodeId,
331332
pluginOptions.entityReferenceRevisions,
332333
pluginOptions,
334+
null,
333335
reporter
334336
)
335337

0 commit comments

Comments
 (0)