diff --git a/src/TrainingGuides.Web/Features/Articles/Services/ArticlePageService.cs b/src/TrainingGuides.Web/Features/Articles/Services/ArticlePageService.cs index efc40f8f..3c20d228 100644 --- a/src/TrainingGuides.Web/Features/Articles/Services/ArticlePageService.cs +++ b/src/TrainingGuides.Web/Features/Articles/Services/ArticlePageService.cs @@ -29,11 +29,11 @@ public async Task 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,