Skip to content

Commit 8836ca6

Browse files
committed
group type search bug
1 parent 709e78a commit 8836ca6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,6 @@ export class MgtPeoplePicker extends MgtTemplatedComponent {
645645
if (!people && provider && provider.state === ProviderState.SignedIn) {
646646
const graph = provider.graph.forComponent(this);
647647

648-
// default common people
649648
if (!input.length && this._isFocused) {
650649
if (this.defaultPeople) {
651650
people = this.defaultPeople;
@@ -662,7 +661,7 @@ export class MgtPeoplePicker extends MgtTemplatedComponent {
662661
} else if (this.type === PersonType.person || this.type === PersonType.any) {
663662
people = await getPeople(graph);
664663
} else if (this.type === PersonType.group) {
665-
const groups = (await findGroups(graph, '', this.showMax, GroupType.Any)) || [];
664+
const groups = (await findGroups(graph, input, this.showMax, this.groupType)) || [];
666665
people = groups;
667666
}
668667
this.defaultPeople = people;

0 commit comments

Comments
 (0)