diff --git a/src/custom-lists/ui/space-email-invites/logic.ts b/src/custom-lists/ui/space-email-invites/logic.ts index 4de0510e11..2883d91eff 100644 --- a/src/custom-lists/ui/space-email-invites/logic.ts +++ b/src/custom-lists/ui/space-email-invites/logic.ts @@ -161,6 +161,13 @@ export default class SpaceEmailInvitesLogic extends UILogic { .split(',') .map((email) => email.trim()) .filter((email) => !isValidEmail(email)) // Filter out invalid emails + .filter( + (email) => + !event.state.emailInvites.allIds.some( + (id) => + event.state.emailInvites.byId[id].email === email, + ), + ) // Filter out emails already on the list const roleID = event.state.emailInviteInputRole let prevInviteCount = event.state.emailInvites.allIds.length