Fix compiler warning

This commit is contained in:
jvyden 2022-07-28 16:17:09 -04:00
parent e72e924c40
commit 98cf99e4b0
No known key found for this signature in database
GPG key ID: 18BCF2BE0262B278

View file

@ -13,7 +13,7 @@ public class ReportPage : BaseLayout
public ReportPage(Database database) : base(database)
{}
public GriefReport Report;
public GriefReport Report = null!; // Report is not used if it's null in OnGet
public async Task<IActionResult> OnGet([FromRoute] int reportId)
{