Fix internal server error in the tournament standings API

This commit is contained in:
Kalle 2025-04-10 21:47:47 +03:00
parent 8c0a7f09da
commit b635a788a0

View File

@ -27,6 +27,7 @@ export const loader = async ({ params, request }: LoaderFunctionArgs) => {
});
const bracket = notFoundIfFalsy(tournament.bracketByIdx(bidx));
notFoundIfFalsy(!bracket.preview);
const result: GetTournamentBracketStandingsResponse = {
standings: bracket.standings.map((standing) => ({