Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
shivankacker committed Feb 1, 2024
1 parent 61bb142 commit 87fd854
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/app/admin/projects/[project_id]/chats/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@ export default function Page({ params }: { params: { project_id: string } }) {
const [search, setSearch] = useState("");
const chatsListQuery = useInfiQuery({
queryKey: ["chat", project_id],
queryFn: ({ pageParam = 1 }) => {
const offset = (pageParam - 1) * limit;
return API.chat.chats(project_id, search, limit, offset);
queryFn: ({ pageParam = 0 }) => {
return API.chat.chats(project_id, search, limit, pageParam);
},
}
);
Expand Down

0 comments on commit 87fd854

Please sign in to comment.