mirror of https://github.com/ppy/osu
Mark `Converts` as nullable
This commit is contained in:
parent
e7ab543799
commit
85c1932851
|
@ -126,7 +126,7 @@ public string AuthorString
|
|||
public APIBeatmap[] Beatmaps { get; set; } = Array.Empty<APIBeatmap>();
|
||||
|
||||
[JsonProperty(@"converts")]
|
||||
public APIBeatmap[] Converts { get; set; } = Array.Empty<APIBeatmap>();
|
||||
public APIBeatmap[]? Converts { get; set; }
|
||||
|
||||
private BeatmapMetadata metadata => new BeatmapMetadata
|
||||
{
|
||||
|
|
|
@ -168,7 +168,7 @@ private void updateDisplay()
|
|||
|
||||
if (BeatmapSet != null)
|
||||
{
|
||||
Difficulties.ChildrenEnumerable = BeatmapSet.Beatmaps.Concat(BeatmapSet.Converts)
|
||||
Difficulties.ChildrenEnumerable = BeatmapSet.Beatmaps.Concat(BeatmapSet.Converts ?? Array.Empty<APIBeatmap>())
|
||||
.Where(b => b.Ruleset.MatchesOnlineID(ruleset.Value))
|
||||
.OrderBy(b => !b.Convert)
|
||||
.ThenBy(b => b.StarRating)
|
||||
|
|
Loading…
Reference in New Issue