Skip to content

Commit 9aa101f

Browse files
Fixing Issue - 1669 - PeoplePicker returns no results with webAbsoluteUrl and ensureUser
1 parent d58bb93 commit 9aa101f

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)