We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 72de471 + 9aa101f commit cf2a4d2Copy full SHA for cf2a4d2
1 file changed
src/services/PeopleSearchService.ts
@@ -282,6 +282,9 @@ export default class SPPeopleSearchService {
282
if (userIdx !== -1) {
283
return users[userIdx].Id;
284
}
285
+ } //initialize the array if it doesnt exist with the siteUrl
286
+ else if(!this.cachedLocalUsers[siteUrl]) {
287
+ this.cachedLocalUsers[siteUrl] = [];
288
289
290
const restApi = `${siteUrl}/_api/web/ensureuser`;
0 commit comments