From a5e0b6cbb2c26143f046636665963602623f7d1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=B5=E3=81=81=E3=83=BC?= <47295014+ymuichiro@users.noreply.github.com> Date: Sun, 12 Nov 2023 10:36:15 +0900 Subject: [PATCH] bug fix --- src/pages/community.tsx | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/pages/community.tsx b/src/pages/community.tsx index b9fde45..5518b0f 100644 --- a/src/pages/community.tsx +++ b/src/pages/community.tsx @@ -194,13 +194,11 @@ const Community: NextPage = ({ i18n, communityReleases, spaces, locale }) const getServerSideProps: GetServerSideProps = async ({ locale, defaultLocale }) => { const articles = await findCommunityRelease(locale, { isIncludeMedia: true, page: 1 }); - articles.data = articles.data - .map((article) => { - article.attributes.body = 'deleted'; - article.attributes.localizations.data = []; - return article; - }) - .slice(0, 20); + articles.data = articles.data.map((article) => { + article.attributes.body = 'deleted'; + article.attributes.localizations.data = []; + return article; + }); const spaceArticles = await findSpaceRelease(locale, { isIncludeMedia: true }); const spaces = [...spaceArticles.data].reverse(); return {