File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -228,11 +228,12 @@ export default class SPPeopleSearchService {
228228 const userResults = values . map ( element => {
229229 switch ( element . EntityType ) {
230230 case 'User' :
231- let email : string = element . EntityData . Email !== null ? element . EntityData . Email : element . Description ;
231+ const accountName : string = element . Description || "" ;
232+ const email : string = element . EntityData . Email || element . Description ;
232233 return {
233234 id : element . Key ,
234235 loginName : element . LoginName ? element . LoginName : element . Key ,
235- imageUrl : this . generateUserPhotoLink ( email ) ,
236+ imageUrl : this . generateUserPhotoLink ( accountName ) ,
236237 imageInitials : this . getFullNameInitials ( element . DisplayText ) ,
237238 text : element . DisplayText , // name
238239 secondaryText : email , // email
You can’t perform that action at this time.
0 commit comments