Skip to content

Commit

Permalink
πŸ› Add check for image asset #2113 (#2780)
Browse files Browse the repository at this point in the history
  • Loading branch information
millianapia authored Feb 3, 2025
1 parent 6146e1e commit 41b6bc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/pageComponents/pageTemplates/News.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ const NewsPage = ({ data: news }: ArticleProps) => {
)}
</HeaderInner>
</Header>
<Image>{heroImage && <DefaulHeroImage data={heroImage} />}</Image>
{heroImage.asset && <Image><DefaulHeroImage data={heroImage} /></Image>}
{ingress && ingress.length > 0 && (
<LeadParagraph>
<IngressText value={ingress} includeFootnotes />
Expand Down

0 comments on commit 41b6bc7

Please sign in to comment.