fix game tab selection on home

This commit is contained in:
RaidMax 2022-03-30 15:44:05 -05:00
parent 25fb5fdc14
commit 039a05d9ad

View File

@ -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<Map>();
}
else
{