Merge pull request #537 from appwrite/fix-6178-users-pagination

Fix users list not re-rendering
This commit is contained in:
Torsten Dittmann
2023-09-14 16:28:56 +02:00
committed by GitHub
@@ -34,13 +34,6 @@
export let data: PageData;
// TODO: Remove this when the console SDK is updated
const users = data.users.users.map((user) => {
const labels: string[] = [];
const accessedAt = '';
return { accessedAt, labels, ...user };
});
const projectId = $page.params.project;
async function userCreated(event: CustomEvent<Models.User<Record<string, unknown>>>) {
await goto(`${base}/console/project-${projectId}/auth/user-${event.detail.$id}`);
@@ -65,7 +58,7 @@
<TableCellHead onlyDesktop>Last Activity</TableCellHead>
</TableHeader>
<TableBody>
{#each users as user}
{#each data.users.users as user}
<TableRowLink
href={`${base}/console/project-${projectId}/auth/user-${user.$id}`}>
<TableCell title="Name">