1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-09 06:37:58 -05:00

fix game tab selection on home

This commit is contained in:
RaidMax 2022-03-30 15:44:05 -05:00
parent 397fb18f24
commit 96bbca0454

View File

@ -33,7 +33,8 @@ namespace WebfrontCore.ViewComponents
{ {
if (game.HasValue) 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 else
{ {