Skip to content

Commit

Permalink
Use _.isPlainObject to prevent false Array positives (gatsbyjs#3490)
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandon Konkle authored and jastack committed Jan 24, 2018
1 parent 5d3a508 commit 2f4cf0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/gatsby-source-wordpress/src/normalize.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ exports.getValidKey = getValidKey
// Remove the ACF key from the response when it's not an object
const normalizeACF = entities =>
entities.map(e => {
if (!_.isObject(e[`acf`])) {
if (!_.isPlainObject(e[`acf`])) {
delete e[`acf`]
}
return e
Expand Down

0 comments on commit 2f4cf0e

Please sign in to comment.