fix pagination missing last entry
All checks were successful
delpoy / build-and-deploy (push) Successful in 54s
All checks were successful
delpoy / build-and-deploy (push) Successful in 54s
This commit is contained in:
parent
f74aa38bef
commit
58d39921cb
@ -123,10 +123,7 @@
|
|||||||
</thead>
|
</thead>
|
||||||
<PaginationTableBody
|
<PaginationTableBody
|
||||||
onUpdate={async () =>
|
onUpdate={async () =>
|
||||||
await fetchReports().then(
|
await fetchReports().then((res) => (reports = [...reports, ...res.reports]))}
|
||||||
(res) =>
|
|
||||||
(reports = reports.toSpliced(reports.length - 1, res.reports.length, ...res.reports))
|
|
||||||
)}
|
|
||||||
>
|
>
|
||||||
{#each reports as report}
|
{#each reports as report}
|
||||||
<tr
|
<tr
|
||||||
|
@ -90,9 +90,7 @@
|
|||||||
</thead>
|
</thead>
|
||||||
<PaginationTableBody
|
<PaginationTableBody
|
||||||
onUpdate={async () => {
|
onUpdate={async () => {
|
||||||
await fetchUsers().then(
|
await fetchUsers().then((u) => (users = [...users, ...u]));
|
||||||
(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