Browse Source

Fix pagination parameters. Closes #2835

gek/browser-test-errors
Gabe Kangas 3 years ago
parent
commit
3b8982089d
No known key found for this signature in database
GPG Key ID: 4345B2060657F330
  1. 4
      web/components/ui/followers/FollowerCollection/FollowerCollection.tsx

4
web/components/ui/followers/FollowerCollection/FollowerCollection.tsx

@ -23,7 +23,9 @@ export const FollowerCollection: FC<FollowerCollectionProps> = ({ name, onFollow @@ -23,7 +23,9 @@ export const FollowerCollection: FC<FollowerCollectionProps> = ({ 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;

Loading…
Cancel
Save