Skip to content

Commit

Permalink
[gatsby-transformer-remark] Including length in frontmatter may cause…
Browse files Browse the repository at this point in the history
… heap out of memory gatsbyjs#26565
  • Loading branch information
yamashita-ki committed Aug 6, 2022
1 parent 564a8f7 commit 5174712
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/gatsby/src/utils/sanitize-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const sanitizeNode = (data, isNode = true, path = new Set()) => {

const returnData = isPlainObject ? {} : []
let anyFieldChanged = false
_.each(data, (o, key) => {
_.forOwn(data, (o, key) => {
if (isNode && key === `internal`) {
returnData[key] = o
return
Expand Down

0 comments on commit 5174712

Please sign in to comment.