Skip to content

Commit

Permalink
Update undefined error
Browse files Browse the repository at this point in the history
  • Loading branch information
koechkevin committed Sep 28, 2023
1 parent 5dfbcdd commit 640d640
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
5 changes: 2 additions & 3 deletions apps/codeforafrica/src/lib/data/pagify/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,9 @@ const COLLECTION_BY_SLUG = {
};

async function pagify(parentPage, api, context) {
const { slug: collection, meta = {} } = parentPage;
const { slug: collection } = parentPage;
const pageProps = COLLECTION_BY_SLUG[collection];
const props = (await pageProps?.(api, context)) ?? null;
return { ...props, meta };
return pageProps?.(api, context) ?? null;
}

export default pagify;
1 change: 0 additions & 1 deletion apps/codeforafrica/src/lib/data/pagify/projects.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ async function projects(api, context) {
}),
})),
partners: { list: project.partners, title: "Partners" },
externalHref: project.externalHref?.url,
blockType: "project",
},
],
Expand Down

0 comments on commit 640d640

Please sign in to comment.