diff --git a/apps/charterafrica/src/lib/ecosystem/airtable/processData.js b/apps/charterafrica/src/lib/ecosystem/airtable/processData.js index 12ca65d42..fd78b2de3 100644 --- a/apps/charterafrica/src/lib/ecosystem/airtable/processData.js +++ b/apps/charterafrica/src/lib/ecosystem/airtable/processData.js @@ -58,18 +58,9 @@ function mapSocialMediaColumnsToObjects(columns, data) { link, }; }; - return [ - getData("twitter"), - getData("facebook"), - getData("youtube"), - getData("slack"), - getData("tiktok"), - getData("linkedIn"), - getData("instagram"), - getData("telegram"), - getData("discord"), - getData("whatsapp"), - ].filter(Boolean); + const SUPPORTED_SOCIAL_MEDIA = + "twitter,facebook,youtube,slack,tiktok,linkedIn,instagram,telegram,discord,whatsapp"; + return SUPPORTED_SOCIAL_MEDIA.split(",").map(getData).filter(Boolean); } export function processTool(item, config, { partnersData }) { diff --git a/apps/charterafrica/src/payload/fields/ecosystem/socialMediaFields.js b/apps/charterafrica/src/payload/fields/ecosystem/socialMediaFields.js index 8231da851..11cda27ac 100644 --- a/apps/charterafrica/src/payload/fields/ecosystem/socialMediaFields.js +++ b/apps/charterafrica/src/payload/fields/ecosystem/socialMediaFields.js @@ -79,6 +79,9 @@ function socialMediaColumns({ tableField, schema }) { }, }), ], + admin: { + hideGutter: true, + }, }; }