forked from MapComplete/MapComplete
fix(index): search got confused as it didn't have an id for the list items
This commit is contained in:
parent
7464bf857f
commit
6f4288476e
2 changed files with 10 additions and 3 deletions
|
@ -27,7 +27,14 @@
|
||||||
$: knownThemes = hiddenThemes.filter((theme) => knownThemesId.includes(theme.id))
|
$: knownThemes = hiddenThemes.filter((theme) => knownThemesId.includes(theme.id))
|
||||||
</script>
|
</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">
|
<svelte:fragment slot="title">
|
||||||
<h3>{t.previouslyHiddenTitle.toString()}</h3>
|
<h3>{t.previouslyHiddenTitle.toString()}</h3>
|
||||||
<p>
|
<p>
|
||||||
|
|
|
@ -49,7 +49,7 @@
|
||||||
<ProfessionalServicesButton />
|
<ProfessionalServicesButton />
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
{#each filteredThemes as theme}
|
{#each filteredThemes as theme (theme.id)}
|
||||||
{#if theme !== undefined && !(hideThemes && theme?.hideFromOverview)}
|
{#if theme !== undefined && !(hideThemes && theme?.hideFromOverview)}
|
||||||
<ThemeButton {theme} {isCustom} userDetails={state.osmConnection.userDetails} {state} />
|
<ThemeButton {theme} {isCustom} userDetails={state.osmConnection.userDetails} {state} />
|
||||||
{/if}
|
{/if}
|
||||||
|
@ -62,7 +62,7 @@
|
||||||
<ProfessionalServicesButton />
|
<ProfessionalServicesButton />
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
{#each filteredThemes as theme}
|
{#each filteredThemes as theme (theme.id)}
|
||||||
{#if theme !== undefined && !(hideThemes && theme?.hideFromOverview)}
|
{#if theme !== undefined && !(hideThemes && theme?.hideFromOverview)}
|
||||||
<ThemeButton {theme} {isCustom} userDetails={state.osmConnection.userDetails} {state} />
|
<ThemeButton {theme} {isCustom} userDetails={state.osmConnection.userDetails} {state} />
|
||||||
{/if}
|
{/if}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue