Entrer une supposition
{#if searchInput.length > 0 && filteredCharacters.length > 0}
{#each filteredCharacters as character, index (character.id)}
highlightedIndex = index} onclick={() => selectCharacter(character)} > {#if character.pictureUrl}
{:else}
?
{/if}
{character.name}
{#if character.epithets} {@const parsedEpithets = typeof character.epithets === 'string' ? JSON.parse(character.epithets) : character.epithets} {#if Array.isArray(parsedEpithets) && parsedEpithets.length > 0}
• {parsedEpithets.join(', ')}
{/if} {/if}
{/each}
{/if}
Valider