From c503984d9210f02fe7654e4ebdabb5c9d2ae0182 Mon Sep 17 00:00:00 2001 From: Riccardo Date: Sat, 2 Jan 2021 10:17:51 +0100 Subject: [PATCH] Fix --- client/src/components/LinkList.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/src/components/LinkList.js b/client/src/components/LinkList.js index e158cb9..b539dd8 100644 --- a/client/src/components/LinkList.js +++ b/client/src/components/LinkList.js @@ -56,7 +56,7 @@ const NEW_LINKS_SUBSCRIPTION = gql` const getQueryVariables = (isNewPage, page) => { const skip = isNewPage ? (page - 1) * LINKS_PER_PAGE : 0; - const take = isNewPage ? LINKS_PER_PAGE : 10; + const take = isNewPage ? LINKS_PER_PAGE : 100; const orderBy = { createdAt: 'desc' }; console.log(isNewPage, page, LINKS_PER_PAGE, skip, take, orderBy); return { take, skip, orderBy }; @@ -72,8 +72,8 @@ const LinkList = () => { ); const page = parseInt( - pageIndexParams.length - 1 - // pageIndexParams[pageIndexParams.length - 1] + // pageIndexParams.length - 1 + pageIndexParams[pageIndexParams.length - 1] ); console.log(pageIndexParams.length, page);