File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -228,11 +228,12 @@ export default class SPPeopleSearchService {
228
228
const userResults = values . map ( element => {
229
229
switch ( element . EntityType ) {
230
230
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 ;
232
233
return {
233
234
id : element . Key ,
234
235
loginName : element . LoginName ? element . LoginName : element . Key ,
235
- imageUrl : this . generateUserPhotoLink ( email ) ,
236
+ imageUrl : this . generateUserPhotoLink ( accountName ) ,
236
237
imageInitials : this . getFullNameInitials ( element . DisplayText ) ,
237
238
text : element . DisplayText , // name
238
239
secondaryText : email , // email
You can’t perform that action at this time.
0 commit comments