620 bug redundant attendees in the invitation list (#629)

Co-authored-by: Camille Moussu <cmoussu@linagora.com>
This commit is contained in:
Camille Moussu
2026-03-14 06:37:50 +01:00
committed by GitHub
parent ee33da468d
commit 27be9f10ae
3 changed files with 101 additions and 15 deletions
+10 -5
View File
@@ -297,11 +297,16 @@ export function PeopleSearch({
return;
}
setInputError(null);
const mapped = value.map((v: string | User) =>
typeof v === "string"
? { email: v.trim(), displayName: v.trim() }
: v
);
const mapped = value
.map((v: string | User) =>
typeof v === "string"
? { email: v.trim(), displayName: v.trim() }
: v
)
.filter(
(user, index, self) =>
self.findIndex((u) => u.email === user.email) === index
);
onChange(event, mapped);
}}
slotProps={{