You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@age.apache.org by hb...@apache.org on 2022/09/08 07:30:51 UTC
[age-website] branch new-web updated: Fix projects null exception
This is an automated email from the ASF dual-hosted git repository.
hbshin pushed a commit to branch new-web
in repository https://gitbox.apache.org/repos/asf/age-website.git
The following commit(s) were added to refs/heads/new-web by this push:
new 90cdf06 Fix projects null exception
90cdf06 is described below
commit 90cdf0619f38f4506a800614a68de06ed47a761b
Author: Hanbyeol Shin / David Shin / 신한별 <76...@users.noreply.github.com>
AuthorDate: Thu Sep 8 16:30:44 2022 +0900
Fix projects null exception
---
src/components/AgeProjectList.js | 2 +-
src/components/AgeViewerProjectList.js | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/components/AgeProjectList.js b/src/components/AgeProjectList.js
index 19118db..dfb9173 100644
--- a/src/components/AgeProjectList.js
+++ b/src/components/AgeProjectList.js
@@ -70,7 +70,7 @@ const ProjectList = ({ mode }) => {
More
</button>
);
- else if (projects.length == 12 || !pageInfo?.hasNextPage)
+ else if (projects?.length == 12 || !pageInfo?.hasNextPage)
return (
<button
className={styles.MoreBtn}
diff --git a/src/components/AgeViewerProjectList.js b/src/components/AgeViewerProjectList.js
index 9b61f92..1f1e990 100644
--- a/src/components/AgeViewerProjectList.js
+++ b/src/components/AgeViewerProjectList.js
@@ -74,7 +74,7 @@ const ProjectList = ({ mode }) => {
More
</button>
);
- else if (projects.length == 12 || !pageInfo?.hasNextPage)
+ else if (projects?.length == 12 || !pageInfo?.hasNextPage)
return (
<button
className={styles.MoreBtn}