From f2f888db55cf09b51b069a6c4d472d35f08aa667 Mon Sep 17 00:00:00 2001 From: Clemence Kyara Date: Thu, 23 May 2024 10:34:26 +0300 Subject: [PATCH] `overrides` on socialLinks is optional --- apps/codeforafrica/src/payload/fields/socialLinks.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/codeforafrica/src/payload/fields/socialLinks.js b/apps/codeforafrica/src/payload/fields/socialLinks.js index 2a0bf0e10..566c9cc70 100644 --- a/apps/codeforafrica/src/payload/fields/socialLinks.js +++ b/apps/codeforafrica/src/payload/fields/socialLinks.js @@ -12,7 +12,7 @@ export const socialMediaOptions = [ "Slack", ]; -function socialLinks(overrides) { +function socialLinks(overrides = {}) { const defaults = { name: "links", type: "array",