Skip to content

Commit

Permalink
Merge pull request #1742 from NishkalankBezawada/Issue-1669-New
Browse files Browse the repository at this point in the history
Fixing Issue - 1669 - PeoplePicker returns no results with webAbsoluteUrl and ensureUser
  • Loading branch information
michaelmaillot committed Feb 3, 2024
2 parents 72de471 + 9aa101f commit cf2a4d2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/services/PeopleSearchService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,9 @@ export default class SPPeopleSearchService {
if (userIdx !== -1) {
return users[userIdx].Id;
}
} //initialize the array if it doesnt exist with the siteUrl
else if(!this.cachedLocalUsers[siteUrl]) {
this.cachedLocalUsers[siteUrl] = [];
}

const restApi = `${siteUrl}/_api/web/ensureuser`;
Expand Down

0 comments on commit cf2a4d2

Please sign in to comment.