{#await peoplePromise then people} {#if people && people.length > 0} {@const peopleList = showAllPeople ? filterPeople(people, name) : filterPeople(people, name).slice(0, numberOfPeople)}

PEOPLE

{#each peopleList as person (person.id)} {/each}
{#if showAllPeople || people.length > peopleList.length}
{/if}
{/if} {/await}