Merge pull request #7166 from Budibase/fix/add-user-validation

Set errors to null rather than deleting when validating user emails
This commit is contained in:
Martin McKeaveney 2022-08-09 10:55:11 +01:00 committed by GitHub
commit ca93044f9e
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@
if (email) {
const res = emailValidator(email)
if (res === true) {
delete userData[index].error
userData[index].error = null
} else {
userData[index].error = res
}