Skip to content

Commit

Permalink
fix: correct filter concatenation in mgt-people-picker (#2822)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mnickii committed Nov 2, 2023
1 parent 14e7a56 commit 18925a9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/mgt-components/src/graph/graph.people.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ export const findPeople = async (

if (filters !== '') {
// Adding the default people filters to the search filters
filter += `${filter} and ${filters}`;
filter += `${filters}`;
}
let graphResult: CollectionResponse<Person>;
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,11 @@ export const pickerUserFilters = () => html`

export const pickerPeopleFilters = () => html`
<mgt-people-picker
people-filters="jobTitle eq 'Web Marketing Manager'">
people-filters="jobTitle eq 'Retail Manager'">
</mgt-people-picker>
<mgt-people-picker
people-filters="personType/class eq 'Person' and personType/subclass eq 'OrganizationUser'">
</mgt-people-picker>
`;

Expand Down

0 comments on commit 18925a9

Please sign in to comment.