Skip to content

Commit

Permalink
fix: get noOfArticle by articleList (#241)
Browse files Browse the repository at this point in the history
  • Loading branch information
120EE0692 authored Jul 24, 2022
1 parent 8928ca4 commit 90c0d85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/src/pages/portfolio/[userId]/[name].jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand All @@ -93,6 +91,8 @@ export async function getStaticProps({ params: { userId } }) {
},
});

const noOfArticle = articleList.length;

let { store, storePath } = picture;
let profileImageLink = getStores[store] + storePath;

Expand Down

0 comments on commit 90c0d85

Please sign in to comment.