Browse Source

fix: duplicate email on input

pull/6441/head
sreehari jayaraj 1 year ago
parent
commit
b747dbe275
  1. 6
      packages/nc-gui/components/workspace/InviteSection.vue

6
packages/nc-gui/components/workspace/InviteSection.vue

@ -41,6 +41,12 @@ watch(inviteData, (newVal) => {
emailValidation.message = 'invalid email'
return
}
// if email is already enterd we just ignore the input
// no error is thrown
if (emailBadges.value.includes(newVal.email.split(',')[0])) {
inviteData.email = ''
return
}
emailBadges.value.push(newVal.email.split(',')[0])
inviteData.email = ''
}

Loading…
Cancel
Save