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:
parent
397fb18f24
commit
96bbca0454
@ -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
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user