From 039a05d9adcdfe739c320f0f7fa1e589d8c090be Mon Sep 17 00:00:00 2001 From: RaidMax Date: Wed, 30 Mar 2022 15:44:05 -0500 Subject: [PATCH] fix game tab selection on home --- WebfrontCore/ViewComponents/ServerListViewComponent.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/WebfrontCore/ViewComponents/ServerListViewComponent.cs b/WebfrontCore/ViewComponents/ServerListViewComponent.cs index 580414c37..b4f662a2d 100644 --- a/WebfrontCore/ViewComponents/ServerListViewComponent.cs +++ b/WebfrontCore/ViewComponents/ServerListViewComponent.cs @@ -33,7 +33,8 @@ namespace WebfrontCore.ViewComponents { if (game.HasValue) { - ViewBag.Maps = _defaultSettings.Maps.FirstOrDefault(map => map.Game == game); + ViewBag.Maps = _defaultSettings.Maps.FirstOrDefault(map => map.Game == game)?.Maps.ToList() ?? + new List(); } else {