From bc32cbd7d126b5115b554a60bf19735c6da36d22 Mon Sep 17 00:00:00 2001 From: solimant Date: Tue, 5 Mar 2024 08:56:12 -0500 Subject: [PATCH] Fix bug in gatsby-node.js (#421) --- gatsby-node.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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