diff --git a/frontend/src/components/Modals/AddExistingUserModal.vue b/frontend/src/components/Modals/AddExistingUserModal.vue index 3970436c..db6b2d4d 100644 --- a/frontend/src/components/Modals/AddExistingUserModal.vue +++ b/frontend/src/components/Modals/AddExistingUserModal.vue @@ -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]) "