Skip to content

Commit

Permalink
fix: correct condition for whether to hide title in textContent
Browse files Browse the repository at this point in the history
  • Loading branch information
dhellstrom authored and jeanfredrik committed Nov 9, 2023
1 parent a8e85e5 commit 6ac553c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/gatsby-plugin-search/gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ function defaultContentNodeFields(source) {
source.contentArea &&
source.contentArea.modules.map(({ module }) => [
// Module title if not hidden
module && module.hideTitle && module.title,
module && !module.hideTitle && module.title,
// Module content (in text modules etc)
htmlToText(module && module.content),
// Manual input in Posts module
Expand Down

0 comments on commit 6ac553c

Please sign in to comment.