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

PEOPLE

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