Skip to content

Commit

Permalink
Fix users list not re-rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
stnguyen90 committed Sep 9, 2023
1 parent e07f037 commit 5a5c27c
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/routes/console/project-[project]/auth/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
Expand All @@ -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">
Expand Down

0 comments on commit 5a5c27c

Please sign in to comment.