Skip to content

Commit

Permalink
Use Svelte 5 #each enhancement
Browse files Browse the repository at this point in the history
  • Loading branch information
theonlypwner committed Dec 29, 2024
1 parent f4bed7a commit 573f7ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ const upgradeInfo = $derived(solve(shipLevel, shipEnergy[0], shipEnergy[1], ship
<thead>
<tr>
<th style="width: 0">Damage\Energy</th>
{#each upgradeInfo.table[0] as _, i}
{#each upgradeInfo.table[0], i}
<th>{i}</th>
{/each}
</tr>
Expand Down
2 changes: 1 addition & 1 deletion scripts/tools/match_win/AppToolsMatchWin.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ const memo = $derived((() => {
<th colspan={tableSize}>Player score</th>
</tr>
<tr style="position: sticky; top: 0; z-index: 1">
{#each memo as _, i}
{#each memo, i}
<th>{i}</th>
{/each}
</tr>
Expand Down

0 comments on commit 573f7ea

Please sign in to comment.