Fix group points retrieval in GroupTable component to ensure correct mapping of event groups
All checks were successful
SteamWarCI Build successful

This commit is contained in:
2025-06-29 19:45:18 +02:00
parent 353a415990
commit bed134f8e0

View File

@ -35,7 +35,7 @@
} = $props();
let teamPoints = $derived(
Object.entries(event.groups[group]?.points ?? {}).map(([teamId, points]) => ({
Object.entries(event.groups.find((g) => g.id === group)?.points ?? {}).map(([teamId, points]) => ({
team: event.teams.find((t) => t.id === Number(teamId))!!,
points: points,
}))