1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 15:12:57 +08:00

Don't show matches on schedule which don't have teams set

This commit is contained in:
Dean Herbert 2018-11-17 14:35:40 +09:00
parent bed967b456
commit 81f39c2f39

View File

@ -75,7 +75,7 @@ namespace osu.Game.Tournament.Screens.Schedule
RelativeSizeAxes = Axes.Both,
Width = 0.4f,
ChildrenEnumerable = ladder.Pairings
.Where(p => p.Completed.Value)
.Where(p => p.Completed.Value && p.Team1.Value != null && p.Team2.Value != null)
.OrderByDescending(p => p.Date.Value)
.Take(8)
.Select(p => new SchedulePairing(p))
@ -85,7 +85,7 @@ namespace osu.Game.Tournament.Screens.Schedule
RelativeSizeAxes = Axes.Both,
Width = 0.6f,
ChildrenEnumerable = ladder.Pairings
.Where(p => !p.Completed.Value)
.Where(p => !p.Completed.Value && p.Team1.Value != null && p.Team2.Value != null)
.OrderBy(p => p.Date.Value)
.Take(8)
.Select(p => new SchedulePairing(p))