Fix round robin prepared maps for group size >4
Some checks failed
Tests and checks on push / run-checks-and-tests (push) Has been cancelled
Updates translation progress / update-translation-progress-issue (push) Has been cancelled

This commit is contained in:
Kalle 2024-12-09 22:04:04 +02:00
parent 8e16a938be
commit f2eccf96ae

View File

@ -575,9 +575,10 @@ function teamCountAdjustedBracketData({
case "round_robin":
// ensure a full bracket (no bye round) gets generated even if registration is underway
return bracket.generateMatchesData(
nullFilledArray(TOURNAMENT.DEFAULT_TEAM_COUNT_PER_RR_GROUP).map(
(_, i) => i + 1,
),
nullFilledArray(
bracket.settings?.teamsPerGroup ??
TOURNAMENT.DEFAULT_TEAM_COUNT_PER_RR_GROUP,
).map((_, i) => i + 1),
);
case "single_elimination":
case "double_elimination":