Skip to content

Commit 823ee85

Browse files
amrutha95Amrutha Srinivasan
andauthored
Amrutha/644 (#645)
* Fixed people picker search * Fixed people picker search * Fixed people picker search * Fixed people picker search * Fixed people picker search Co-authored-by: Amrutha Srinivasan <[email protected]>
1 parent da180b6 commit 823ee85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/mgt/src/components/mgt-people-picker/mgt-people-picker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -683,6 +683,7 @@ export class MgtPeoplePicker extends MgtTemplatedComponent {
683683

684684
// make sure only unique people
685685
const peopleIds = new Set(people.map(p => p.id));
686+
686687
for (const user of users) {
687688
if (!peopleIds.has(user.id)) {
688689
people.push(user);
@@ -695,7 +696,6 @@ export class MgtPeoplePicker extends MgtTemplatedComponent {
695696
}
696697

697698
if ((this.type === PersonType.group || this.type === PersonType.any) && people.length < this.showMax) {
698-
people = [];
699699
try {
700700
const groups = (await findGroups(graph, input, this.showMax, this.groupType)) || [];
701701
people = people.concat(groups);

0 commit comments

Comments
 (0)