fix(index): search got confused as it didn't have an id for the list items

This commit is contained in:
Pieter Vander Vennet 2023-03-13 21:31:27 +01:00
parent 7464bf857f
commit 6f4288476e
2 changed files with 10 additions and 3 deletions

View file

@ -27,7 +27,14 @@
$: knownThemes = hiddenThemes.filter((theme) => knownThemesId.includes(theme.id))
</script>
<ThemesList {search} {state} {onMainScreen} themes={knownThemes} isCustom={false} hideThemes={false}>
<ThemesList
{search}
{state}
{onMainScreen}
themes={knownThemes}
isCustom={false}
hideThemes={false}
>
<svelte:fragment slot="title">
<h3>{t.previouslyHiddenTitle.toString()}</h3>
<p>

View file

@ -49,7 +49,7 @@
<ProfessionalServicesButton />
{/if}
{#each filteredThemes as theme}
{#each filteredThemes as theme (theme.id)}
{#if theme !== undefined && !(hideThemes && theme?.hideFromOverview)}
<ThemeButton {theme} {isCustom} userDetails={state.osmConnection.userDetails} {state} />
{/if}
@ -62,7 +62,7 @@
<ProfessionalServicesButton />
{/if}
{#each filteredThemes as theme}
{#each filteredThemes as theme (theme.id)}
{#if theme !== undefined && !(hideThemes && theme?.hideFromOverview)}
<ThemeButton {theme} {isCustom} userDetails={state.osmConnection.userDetails} {state} />
{/if}