Skip to content

Commit

Permalink
Filter out hidden news items in Blazor (#851)
Browse files Browse the repository at this point in the history
The MG news item was added as part of #850 but was filtered from the
Svelte site, however it is now showing on the Blazor website
  • Loading branch information
SapiensAnatis authored Jun 2, 2024
1 parent 2d04c96 commit 0c30ed1
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
}

this.allNewsItems = await this.ApiContext.NewsItems
.Where(x => !x.Hidden)
.OrderByDescending(x => x.Date)
.Select(x => new NewsItem(x))
.ToListAsync();
Expand Down

0 comments on commit 0c30ed1

Please sign in to comment.