From 5a5c27c1491616fe7095cee2536bc0254195f8f1 Mon Sep 17 00:00:00 2001 From: Steven Nguyen Date: Fri, 8 Sep 2023 17:32:06 -0700 Subject: [PATCH] Fix users list not re-rendering --- src/routes/console/project-[project]/auth/+page.svelte | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/routes/console/project-[project]/auth/+page.svelte b/src/routes/console/project-[project]/auth/+page.svelte index 742fa8a78..bdd8d834a 100644 --- a/src/routes/console/project-[project]/auth/+page.svelte +++ b/src/routes/console/project-[project]/auth/+page.svelte @@ -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>>) { await goto(`${base}/console/project-${projectId}/auth/user-${event.detail.$id}`); @@ -65,7 +58,7 @@ Last Activity - {#each users as user} + {#each data.users.users as user}