offset-limit-fix-4

This commit is contained in:
tonyrewin 2022-09-14 14:29:10 +03:00
parent 5d8be09601
commit d0eccc7b95

View File

@ -29,8 +29,8 @@ export const ArticlePage = (props: ArticlePageProps) => {
setIsCommentsLoading(true) setIsCommentsLoading(true)
await loadArticleReactions({ await loadArticleReactions({
articleSlug: props.slug, articleSlug: props.slug,
page: getCommentsPage(), limit: ARTICLE_COMMENTS_PAGE_SIZE,
size: ARTICLE_COMMENTS_PAGE_SIZE offset: getCommentsPage() * ARTICLE_COMMENTS_PAGE_SIZE
}) })
} finally { } finally {
setIsCommentsLoading(false) setIsCommentsLoading(false)