From 6760f36177720bfea335a5ba052358278756d2e8 Mon Sep 17 00:00:00 2001 From: Roman Timashev Date: Tue, 3 Mar 2020 02:38:22 +0300 Subject: [PATCH] page fix --- pages/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/index.tsx b/pages/index.tsx index ccc3f334..d8f4073a 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -59,7 +59,7 @@ export const unstable_getStaticProps = async () => { const url = `/api/pages/tags?${tagQuery}&skip=${skip}&limit=${limit}&sortBy=-date` const res = await requestGet>(createApiUrl(url), null) - const articles = (res.items || []) + const items = (res.items || []) // const nextPage = res.nextPage const nextPage = 2 const prevPage = res.prevPage @@ -73,7 +73,7 @@ export const unstable_getStaticProps = async () => { return { props: { - articles, + items, nextPage, prevPage, title,