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 (
@@ -95,9 +101,9 @@ const GlossaryPage: React.FC = () => { )} {/* Additional Glossary Sections (if any) */} - {selectedEvent.sections && selectedEvent.sections.length > 0 && ( + {glossarySections && glossarySections.length > 0 && ( <> - {selectedEvent.sections.map((section: any) => ( + {glossarySections.map((section: any) => ( ))} diff --git a/website2/src/components/dialogs/EngagementDialog.tsx b/website2/src/components/dialogs/EngagementDialog.tsx index 0ad66e1528..b058037e42 100644 --- a/website2/src/components/dialogs/EngagementDialog.tsx +++ b/website2/src/components/dialogs/EngagementDialog.tsx @@ -398,7 +398,7 @@ const EngagementDialog = () => { {/* Right Side */}