diff --git a/website2/src/app/clean-air-forum/glossary/page.tsx b/website2/src/app/clean-air-forum/glossary/page.tsx index 3a5a2b7252..d099dd930e 100644 --- a/website2/src/app/clean-air-forum/glossary/page.tsx +++ b/website2/src/app/clean-air-forum/glossary/page.tsx @@ -36,6 +36,12 @@ const GlossaryPage: React.FC = () => { const glossaryHTML = renderContent(selectedEvent.glossary_details); const showGlossaryMain = isValidGlossaryContent(glossaryHTML); + const glossarySections = selectedEvent.sections?.filter((section: any) => { + if (!section.pages.includes('glossary')) return false; + const html = renderContent(section.content); + return html.trim().length > 0; + }); + return (