summaryrefslogtreecommitdiff
path: root/src/SMAPI.Web/Views/Mods
diff options
context:
space:
mode:
Diffstat (limited to 'src/SMAPI.Web/Views/Mods')
-rw-r--r--src/SMAPI.Web/Views/Mods/Index.cshtml4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/SMAPI.Web/Views/Mods/Index.cshtml b/src/SMAPI.Web/Views/Mods/Index.cshtml
index 8a764803..78eabad7 100644
--- a/src/SMAPI.Web/Views/Mods/Index.cshtml
+++ b/src/SMAPI.Web/Views/Mods/Index.cshtml
@@ -6,7 +6,7 @@
@{
ViewData["Title"] = "Mod compatibility";
- TimeSpan staleAge = DateTimeOffset.UtcNow - Model.LastUpdated;
+ TimeSpan staleAge = DateTimeOffset.UtcNow - Model!.LastUpdated;
bool hasBeta = Model.BetaVersion != null;
string betaLabel = $"SDV {Model.BetaVersion} only";
@@ -19,7 +19,7 @@
<script src="~/Content/js/mods.js?r=20210929"></script>
<script>
$(function() {
- var data = @this.ForJson(Model.Mods ?? new ModModel[0]);
+ var data = @(this.ForJson(Model.Mods ?? Array.Empty<ModModel>()));
var enableBeta = @this.ForJson(hasBeta);
smapi.modList(data, enableBeta);
});