mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-07 21:58:06 -05:00
fix client history issue with empty database
This commit is contained in:
parent
312a40b99f
commit
d4f505255c
@ -50,7 +50,7 @@ namespace WebfrontCore.ViewComponents
|
||||
{
|
||||
counts = counts.Union(server.ClientHistory
|
||||
.Select(history => history.ToClientCountSnapshot()).Where(history =>
|
||||
history.Time > clientHistory.ClientCounts.Last().Time));
|
||||
history.Time > (clientHistory.ClientCounts.LastOrDefault()?.Time ?? DateTime.MinValue)));
|
||||
}
|
||||
|
||||
serverInfo.Add(new ServerInfo()
|
||||
|
Loading…
x
Reference in New Issue
Block a user