index page default articles list

This commit is contained in:
tmshv committed 2019-10-13 16:12:28 +03:00
1 parent 7ab68f5a8e
commit 6352ca66d9
1 file changed
+1 -1
+1 -1
View File
@@ -37,7 +37,7 @@ Page.getInitialProps = async (ctx) => {
const page = 1
const pageSize = ctx.query.pageSize || 15
const res = await requestGet(createApiUrl(ctx.req, `/api/articles?page=${page}&pageSize=${pageSize}`), {})
const articles = res.items
const articles = res.items || []
const nextPage = res.nextPage
const prevPage = res.prevPage
const title = 'Шлиссельбургская ДХШ'