parent
f74aa38bef
commit
58d39921cb
src/routes/admin
@ -123,10 +123,7 @@
|
||||
</thead>
|
||||
<PaginationTableBody
|
||||
onUpdate={async () =>
|
||||
await fetchReports().then(
|
||||
(res) =>
|
||||
(reports = reports.toSpliced(reports.length - 1, res.reports.length, ...res.reports))
|
||||
)}
|
||||
await fetchReports().then((res) => (reports = [...reports, ...res.reports]))}
|
||||
>
|
||||
{#each reports as report}
|
||||
<tr
|
||||
|
@ -90,9 +90,7 @@
|
||||
</thead>
|
||||
<PaginationTableBody
|
||||
onUpdate={async () => {
|
||||
await fetchUsers().then(
|
||||
(u) => (users = users.toSpliced(users.length - 1, u.length, ...u))
|
||||
);
|
||||
await fetchUsers().then((u) => (users = [...users, ...u]));
|
||||
}}
|
||||
>
|
||||
{#each users as user, i}
|
||||
|
Loading…
x
Reference in New Issue
Block a user