Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

fix: users table pagination (#1383)

Max Deichmann6df7a2c71635
diff --git a/web/prisma/seed.ts b/web/prisma/seed.ts
index f47fb91324..31c9f5ac32 100755
--- a/web/prisma/seed.ts
+++ b/web/prisma/seed.ts
@@ -386,7 +386,7 @@ function createObjects(
more: "1,2,3;4?6",
},
tags: tags as string[],
- userId: `user-${i % 10}`,
+ userId: `user-${i % 60}`,
input:
Math.random() > 0.3 ? "I'm looking for a React component" : undefined,
output:
diff --git a/web/src/pages/project/[projectId]/users.tsx b/web/src/pages/project/[projectId]/users.tsx
index 9ce6c5c9af..439a3afc1b 100644
--- a/web/src/pages/project/[projectId]/users.tsx
+++ b/web/src/pages/project/[projectId]/users.tsx
@@ -66,7 +66,7 @@ export default function UsersPage() {
})),
);
- const totalCount = userRowData.rows?.length ?? 0;
+ const totalCount = users.data?.totalUsers ?? 0;
useEffect(() => {
if (users.isSuccess) {