From 3b8982089d05c95a41f8d774e33133f3df0988b1 Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Fri, 17 Mar 2023 21:10:56 -0700 Subject: [PATCH] Fix pagination parameters. Closes #2835 --- .../ui/followers/FollowerCollection/FollowerCollection.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/components/ui/followers/FollowerCollection/FollowerCollection.tsx b/web/components/ui/followers/FollowerCollection/FollowerCollection.tsx index d5d0e0dc0..275ac65b5 100644 --- a/web/components/ui/followers/FollowerCollection/FollowerCollection.tsx +++ b/web/components/ui/followers/FollowerCollection/FollowerCollection.tsx @@ -23,7 +23,9 @@ export const FollowerCollection: FC = ({ name, onFollow const getFollowers = async () => { try { - const response = await fetch(`${ENDPOINT}?page=${page}&limit=${ITEMS_PER_PAGE}`); + const response = await fetch( + `${ENDPOINT}?offset=${page * ITEMS_PER_PAGE}&limit=${ITEMS_PER_PAGE}`, + ); const data = await response.json(); const { results, total: totalResults } = data;