From d0eccc7b95b9665929105a982dfaaf43240260ae Mon Sep 17 00:00:00 2001 From: tonyrewin Date: Wed, 14 Sep 2022 14:29:10 +0300 Subject: [PATCH] offset-limit-fix-4 --- src/components/Views/ArticlePage.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Views/ArticlePage.tsx b/src/components/Views/ArticlePage.tsx index a0736713..2e8ac84e 100644 --- a/src/components/Views/ArticlePage.tsx +++ b/src/components/Views/ArticlePage.tsx @@ -29,8 +29,8 @@ export const ArticlePage = (props: ArticlePageProps) => { setIsCommentsLoading(true) await loadArticleReactions({ articleSlug: props.slug, - page: getCommentsPage(), - size: ARTICLE_COMMENTS_PAGE_SIZE + limit: ARTICLE_COMMENTS_PAGE_SIZE, + offset: getCommentsPage() * ARTICLE_COMMENTS_PAGE_SIZE }) } finally { setIsCommentsLoading(false)