This commit is contained in:
2023-12-24 23:00:20 +01:00
parent c5effd8f7f
commit a2687083e0
16 changed files with 91 additions and 38 deletions
@@ -216,7 +216,7 @@
<Checkbox class="ml-2 text-center" checked={group.fights.every(gf => selectedFights.has(gf))} on:click={() => cycleGroup(group.fights)}/>
<h1 class="ml-4 text-2xl">{group.group ?? "Ungrouped"}</h1>
</div>
{#each group.fights.sort((a, b) => a.start - b.start) as fight, i}
{#each group.fights.sort((a, b) => a.start - b.start) as fight, i (fight.id)}
<FightCard {fight} {i} {data} selected={selectedFights.has(fight)}
on:select={() => {
if (selectedFights.has(fight)) {
@@ -24,7 +24,7 @@
export let data: ExtendedEvent;
</script>
<div class="m-4">
{#each data.teams as team}
{#each data.teams as team (team.id)}
<div class="flex flex-row my-2">
<Avatar size="lg">{team.kuerzel}</Avatar>
<div class="m-2">
@@ -58,7 +58,7 @@
redTeam: parseInt(redTeam),
start: dayjs(start),
map,
kampfleiter: parseInt(kampfleiter),
kampfleiter: parseInt(kampfleiter!),
group,
});
reset()