{#each table.getHeaderGroups() as headerGroup (headerGroup.id)}
{#each headerGroup.headers as header (header.id)}
{#if !header.isPlaceholder}
{/if}
{/each}
{/each}
{#each table.getRowModel().rows as groupRow (groupRow.id)}
{#if groupRow.getIsGrouped()}
groupRow.toggleSelected()}
class="mr-4"
/>
{groupRow.getValue("group") ?? "Keine Gruppe"}
{#if groupRow.original.group != null}
{/if}
{#each groupRow.subRows as row (row.id)}
{#each row.getVisibleCells() as cell (cell.id)}
{/each}
(fights = fights.map((v) => (v.id === update.id ? update : v)))}
>
{/each}
{:else}
{#each groupRow.getVisibleCells() as cell (cell.id)}
{/each}
{/if}
{:else}
No results.
{/each}