Fixes bug with undefined value in the loop

Details: https://github.com/sveltejs/svelte/issues/14203
This commit is contained in:
freearhey 2025-03-08 01:08:39 +03:00
parent c9ec8e21ee
commit 627ea95ec9
2 changed files with 2 additions and 2 deletions

View file

@ -35,7 +35,7 @@
</div>
</div>
<div>
{#each channelsDisplay as channel}
{#each channelsDisplay as channel, idx (channel)}
<ChannelItem bind:channel />
{/each}
</div>

View file

@ -81,7 +81,7 @@
loading...
</div>
{/if}
{#each _countries as country (country.code)}
{#each _countries as country, idx (country)}
{#if groupedByCountry[country.code] && groupedByCountry[country.code].length > 0}
<CountryItem
bind:country