Skip to content

Commit

Permalink
fixes #1292 where people picker returns no results
Browse files Browse the repository at this point in the history
  • Loading branch information
joelfmrodrigues committed Sep 8, 2022
1 parent 385dbc0 commit cd9d8d2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@
"`PeoplePicker`: Use webAbsoluteUrl if provided through props to ensure user [#1273](https://github.com/pnp/sp-dev-fx-controls-react/issues/1273)"
],
"fixes": [
"`PeoplePicker`: fixes where people picker returns no results [#1292](https://github.com/pnp/sp-dev-fx-controls-react/issues/1292)",
"`FilePicker`: Tile view fix [#1272](https://github.com/pnp/sp-dev-fx-controls-react/issues/1272)"
]
},
"contributions": [
"[Chad Eiserloh](https://github.com/c-eiser13)",
"[Hilton Giesenow](https://github.com/HiltonGiesenow)",
"[Jake Stanger](https://github.com/JakeStanger)",
"[Victor Romanov](https://github.com/VRomanovTau)"
Expand Down
4 changes: 2 additions & 2 deletions src/services/PeopleSearchService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ export default class SPPeopleSearchService {
try {
// If the running env is SharePoint, loads from the peoplepicker web service
const userRequestUrl: string = `${siteUrl || this.context.pageContext.web.absoluteUrl}/_api/SP.UI.ApplicationPages.ClientPeoplePickerWebServiceInterface.clientPeoplePickerSearchUser`;
const searchBody = {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const searchBody: any = {
queryParams: {
AllowEmailAddresses: true,
AllowMultipleEntities: false,
Expand All @@ -119,7 +120,6 @@ export default class SPPeopleSearchService {
PrincipalSource: 15,
PrincipalType: this.getSumOfPrincipalTypes(principalTypes),
QueryString: query,
SharePointGroupID: null
}
};

Expand Down

0 comments on commit cd9d8d2

Please sign in to comment.