Skip to content

Commit

Permalink
Fix bug in gatsby-node.js (#421)
Browse files Browse the repository at this point in the history
  • Loading branch information
solimant authored Mar 5, 2024
1 parent 900031a commit bc32cbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bc32cbd

Please sign in to comment.