Skip to content

Commit

Permalink
Filter out empty banners
Browse files Browse the repository at this point in the history
  • Loading branch information
mruwnik committed May 28, 2024
1 parent 6da8373 commit 95b377f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/components/Article/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export const Article = ({question, glossary, className}: ArticleProps) => {
return (
<article className={`${className} ${isLoading(question) ? 'loading' : ''}`}>
<h1 className="teal-500 padding-bottom-24">{title}</h1>
{question.banners?.map(Banner)}
{question.banners?.filter((b) => b.title).map(Banner)}
<ArticleMeta question={question} className="padding-bottom-56" />

<Contents pageid={pageid} html={text || ''} glossary={glossary || {}} />
Expand Down

0 comments on commit 95b377f

Please sign in to comment.