maybe fix overfetching now
All checks were successful
delpoy / build-and-deploy (push) Successful in 1m23s
All checks were successful
delpoy / build-and-deploy (push) Successful in 1m23s
This commit is contained in:
parent
f461f6db77
commit
750d1b43d7
@ -120,7 +120,10 @@
|
|||||||
</thead>
|
</thead>
|
||||||
<PaginationTableBody
|
<PaginationTableBody
|
||||||
onUpdate={async () =>
|
onUpdate={async () =>
|
||||||
await fetchReports().then((res) => (reports = [...reports, ...res.reports]))}
|
await fetchReports().then(
|
||||||
|
(res) =>
|
||||||
|
(reports = reports.toSpliced(reports.length - 1, res.reports.length, ...res.reports))
|
||||||
|
)}
|
||||||
>
|
>
|
||||||
{#each reports as report}
|
{#each reports as report}
|
||||||
<tr
|
<tr
|
||||||
|
@ -83,7 +83,9 @@
|
|||||||
</thead>
|
</thead>
|
||||||
<PaginationTableBody
|
<PaginationTableBody
|
||||||
onUpdate={async () => {
|
onUpdate={async () => {
|
||||||
await fetchUsers().then((u) => (users = [...users, ...u]));
|
await fetchUsers().then(
|
||||||
|
(u) => (users = users.toSpliced(users.length - 1, u.length, ...u))
|
||||||
|
);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{#each users as user, i}
|
{#each users as user, i}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user