From 1da633b0401ab62028cc39d74677c0242c74a2db Mon Sep 17 00:00:00 2001 From: Ntokozo Date: Fri, 21 Jun 2024 19:00:14 +0100 Subject: [PATCH] refactor(admin) add validation for editable email form fields (#853) --- admin/src/collections/recipients/RecipientsProperties.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/admin/src/collections/recipients/RecipientsProperties.ts b/admin/src/collections/recipients/RecipientsProperties.ts index b725ae8a8..ed81328d2 100644 --- a/admin/src/collections/recipients/RecipientsProperties.ts +++ b/admin/src/collections/recipients/RecipientsProperties.ts @@ -124,7 +124,9 @@ export const organisationProperty: Property = { export const emailProperty: Property = { name: 'Email', dataType: 'string', + email: true, hideFromCollection: true, + validation: { unique: true }, }; export const InstagramProperty: Property = {