diff --git a/client/src/pages/portfolio/[userId]/[name].jsx b/client/src/pages/portfolio/[userId]/[name].jsx index 5b9a3e69..289ace81 100644 --- a/client/src/pages/portfolio/[userId]/[name].jsx +++ b/client/src/pages/portfolio/[userId]/[name].jsx @@ -81,8 +81,6 @@ export async function getStaticProps({ params: { userId } }) { .filter(({ model }) => model === 'Article') .reduce((prev, curr) => [...prev, curr.reference], []); - const noOfArticle = articleIdList.length; - const { data: { getListOfArticles: articleList }, } = await GraphClient.query({ @@ -93,6 +91,8 @@ export async function getStaticProps({ params: { userId } }) { }, }); + const noOfArticle = articleList.length; + let { store, storePath } = picture; let profileImageLink = getStores[store] + storePath;