Skip to content

Commit cf2a4d2

Browse files
Merge pull request #1742 from NishkalankBezawada/Issue-1669-New
Fixing Issue - 1669 - PeoplePicker returns no results with webAbsoluteUrl and ensureUser
2 parents 72de471 + 9aa101f commit cf2a4d2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/services/PeopleSearchService.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,9 @@ export default class SPPeopleSearchService {
282282
if (userIdx !== -1) {
283283
return users[userIdx].Id;
284284
}
285+
} //initialize the array if it doesnt exist with the siteUrl
286+
else if(!this.cachedLocalUsers[siteUrl]) {
287+
this.cachedLocalUsers[siteUrl] = [];
285288
}
286289

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

0 commit comments

Comments
 (0)