fix(web): intersection observer not triggered to load more people (#13589)

This commit is contained in:
Alex
2024-10-18 15:53:47 -05:00
committed by GitHub
parent 4a2a7b7735
commit c9c0212ca9
2 changed files with 2 additions and 2 deletions

View File

@@ -23,7 +23,7 @@
<div class="w-full grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-5 xl:grid-cols-7 2xl:grid-cols-9 gap-1">
{#each people as person, index (person.id)}
{#if hasNextPage && index === people.length - 1}
<div bind:this={lastPersonContainer} class="contents">
<div bind:this={lastPersonContainer}>
<slot {person} {index} />
</div>
{:else}