use a Set when validating emails to prevent duplicates (#3090)
This commit is contained in:
parent
5e84c630a8
commit
71b237a7eb
|
@ -187,7 +187,7 @@ export class UserAddEditComponent implements OnInit {
|
|||
);
|
||||
} else {
|
||||
const request = new OrganizationUserInviteRequest();
|
||||
request.emails = this.emails.trim().split(/\s*,\s*/);
|
||||
request.emails = [...new Set(this.emails.trim().split(/\s*,\s*/))];
|
||||
request.accessAll = this.access === "all";
|
||||
request.type = this.type;
|
||||
request.permissions = this.setRequestPermissions(
|
||||
|
|
Loading…
Reference in New Issue