diff --git a/gatsby-node.js b/gatsby-node.js index 4ad23e8a..6541d7a8 100644 --- a/gatsby-node.js +++ b/gatsby-node.js @@ -419,7 +419,7 @@ exports.createPages = async ({ actions, graphql }) => { if (node.fields.slug !== "") { let seo = searchTree(parliamentNavigation.pages, node.fields.slug) - if (seo === null || seo.trim() === "") { + if (seo == null || seo.trim() === "") { const { headings } = node // Fallback to first h1 heading