fix: existingEmail is a list
(cherry picked from commit 0f8d484e282a2773c23ca927d3e39d7d9d87707b)
This commit is contained in:
parent
1b30b3ebec
commit
c8d165593a
@ -28,9 +28,10 @@
|
||||
:placeholder="__('john@doe.com')"
|
||||
v-model="newUsers"
|
||||
:validate="validateEmail"
|
||||
:existingEmails="
|
||||
users.data.crmUsers.map((user) => user.name) + ['admin@example.com']
|
||||
"
|
||||
:existingEmails="[
|
||||
...users.data.crmUsers.map((user) => user.name),
|
||||
'admin@example.com',
|
||||
]"
|
||||
:error-message="
|
||||
(value) => __('{0} is an invalid email address', [value])
|
||||
"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user