Skip to content

Commit

Permalink
GH-69 :: fix nullability in article service
Browse files Browse the repository at this point in the history
  • Loading branch information
kentico-matthews committed Aug 29, 2024
1 parent 3a2b6c3 commit d8d3c45
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ public async Task<ArticlePageViewModel> GetArticlePageViewModel(ArticlePage? art

if (articleSchema != null)
{
var articleSchemaTeaserImage = articleSchema?.ArticleSchemaTeaser.FirstOrDefault();
var articleSchemaTeaserImage = articleSchema.ArticleSchemaTeaser.FirstOrDefault();

return new ArticlePageViewModel
{
Title = articleSchema?.ArticleSchemaTitle ?? string.Empty,
Title = articleSchema.ArticleSchemaTitle,
Summary = new HtmlString(articleSchema?.ArticleSchemaSummary),
Text = new HtmlString(articleSchema?.ArticleSchemaText),
CreatedOn = articlePage.ArticlePagePublishDate,
Expand Down

0 comments on commit d8d3c45

Please sign in to comment.