diff --git a/apps/codeforafrica/src/lib/data/pagify/index.js b/apps/codeforafrica/src/lib/data/pagify/index.js index b41f1ae81..9d85d7d49 100644 --- a/apps/codeforafrica/src/lib/data/pagify/index.js +++ b/apps/codeforafrica/src/lib/data/pagify/index.js @@ -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; diff --git a/apps/codeforafrica/src/lib/data/pagify/projects.js b/apps/codeforafrica/src/lib/data/pagify/projects.js index b559de7b9..9499b6e29 100644 --- a/apps/codeforafrica/src/lib/data/pagify/projects.js +++ b/apps/codeforafrica/src/lib/data/pagify/projects.js @@ -54,7 +54,6 @@ async function projects(api, context) { }), })), partners: { list: project.partners, title: "Partners" }, - externalHref: project.externalHref?.url, blockType: "project", }, ],