From ad509aeccdaebc6cf62e895dcc0c98477a25698f Mon Sep 17 00:00:00 2001 From: Brandon Konkle Date: Thu, 11 Jan 2018 18:32:14 -0700 Subject: [PATCH] Use `_.isPlainObject` to prevent false Array positives (#3490) --- packages/gatsby-source-wordpress/src/normalize.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/gatsby-source-wordpress/src/normalize.js b/packages/gatsby-source-wordpress/src/normalize.js index 24df68bd7a4eb..7c68b0ef24c33 100644 --- a/packages/gatsby-source-wordpress/src/normalize.js +++ b/packages/gatsby-source-wordpress/src/normalize.js @@ -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