Fix pagination parameters. Closes #2835
This commit is contained in:
@@ -23,7 +23,9 @@ export const FollowerCollection: FC<FollowerCollectionProps> = ({ name, onFollow
|
|||||||
|
|
||||||
const getFollowers = async () => {
|
const getFollowers = async () => {
|
||||||
try {
|
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 data = await response.json();
|
||||||
const { results, total: totalResults } = data;
|
const { results, total: totalResults } = data;
|
||||||
|
|||||||
Reference in New Issue
Block a user