Fix group points retrieval in GroupTable component to ensure correct mapping of event groups
SteamWarCI Build successful
SteamWarCI Build successful
This commit is contained in:
@@ -35,7 +35,7 @@
|
|||||||
} = $props();
|
} = $props();
|
||||||
|
|
||||||
let teamPoints = $derived(
|
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))!!,
|
team: event.teams.find((t) => t.id === Number(teamId))!!,
|
||||||
points: points,
|
points: points,
|
||||||
}))
|
}))
|
||||||
|
|||||||
Reference in New Issue
Block a user