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

fix issue with display server with no saved player history

This commit is contained in:
RaidMax 2021-08-31 08:44:15 -05:00
parent e34d24db7e
commit 90d406a78a

View File

@ -37,7 +37,7 @@ namespace WebfrontCore.ViewComponents
{
var serverId = server.GetIdForServer().Result;
var clientHistory = _serverDataViewer.ClientHistoryAsync(_appConfig.MaxClientHistoryTime,
CancellationToken.None).Result
CancellationToken.None).Result?
.FirstOrDefault(history => history.ServerId == serverId) ??
new ClientHistoryInfo
{