From cbf84db701b4383b77a21571d851a973c8a8983f Mon Sep 17 00:00:00 2001 From: Michael Fatemi Date: Mon, 11 Jan 2021 19:26:02 -0500 Subject: [PATCH] Update ImageUrl types --- src/components/ArticleRow.tsx | 5 ++++- src/pages/newsArticle.tsx | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/ArticleRow.tsx b/src/components/ArticleRow.tsx index 3b826b6..3a8b3a1 100644 --- a/src/components/ArticleRow.tsx +++ b/src/components/ArticleRow.tsx @@ -13,7 +13,10 @@ export default function ArticleRow({ let thumbnail: React.ReactElement | null = null; if (article.thumbnail) { thumbnail = ( - {article.title} + {article.title} ); } diff --git a/src/pages/newsArticle.tsx b/src/pages/newsArticle.tsx index 816831a..379a219 100644 --- a/src/pages/newsArticle.tsx +++ b/src/pages/newsArticle.tsx @@ -14,7 +14,7 @@ export default function NewsArticle() { let thumbnailUrl = '/images/hero.png'; if (article?.thumbnail) { - thumbnailUrl = imageUrl(article.thumbnail).url(); + thumbnailUrl = imageUrl(article.thumbnail).url()!; } const goToAllNewsArticles = (