Skip to content

Commit

Permalink
πŸ› add check for slug #2831 (#2832)
Browse files Browse the repository at this point in the history
  • Loading branch information
millianapia authored Feb 14, 2025
1 parent 99185d2 commit 64b74ac
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions web/templates/newsroom/NewsSections/NewsItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const NewsItem = forwardRef<HTMLLIElement, NewsListItemProps>(function NewsItem(
ref,
) {
const { slug, title, publishDateTime, heroImage, thumbnailUrl } = data || {}
if (!slug) return null

return (
<section ref={ref} className={envisTwMerge('', className)} {...rest}>
Expand Down

0 comments on commit 64b74ac

Please sign in to comment.