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:
commit
1e77697001
|
@ -48,7 +48,7 @@
|
||||||
if (email) {
|
if (email) {
|
||||||
const res = emailValidator(email)
|
const res = emailValidator(email)
|
||||||
if (res === true) {
|
if (res === true) {
|
||||||
delete userData[index].error
|
userData[index].error = null
|
||||||
} else {
|
} else {
|
||||||
userData[index].error = res
|
userData[index].error = res
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue