From 6ac553cb4440cd4dcbdf97ae8268e0475adf5268 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Hellstr=C3=B6m?= Date: Thu, 2 Nov 2023 13:41:39 +0100 Subject: [PATCH] fix: correct condition for whether to hide title in textContent --- packages/gatsby-plugin-search/gatsby-node.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/gatsby-plugin-search/gatsby-node.js b/packages/gatsby-plugin-search/gatsby-node.js index af6fd9b5..dcd871f8 100644 --- a/packages/gatsby-plugin-search/gatsby-node.js +++ b/packages/gatsby-plugin-search/gatsby-node.js @@ -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