1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-08 22:28:15 -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)
{
ViewBag.Maps = _defaultSettings.Maps.FirstOrDefault(map => map.Game == game);
ViewBag.Maps = _defaultSettings.Maps.FirstOrDefault(map => map.Game == game)?.Maps.ToList() ??
new List<Map>();
}
else
{