Skip to content

Commit 00a5b3c

Browse files
authored
Allow undefined photo response in mgt-person for when people don't have images (#539)
Co-authored-by: Matthew Haugen <[email protected]>
1 parent 8a4e759 commit 00a5b3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/mgt/src/graph/graph.user.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export async function getUserWithPhoto(graph: IGraph, userId?: string): Promise<
5151
if (userDetailsResponse.content) {
5252
person = userDetailsResponse.content;
5353

54-
person.personImage = photoResponse.content;
54+
person.personImage = photoResponse && photoResponse.content;
5555
}
5656

5757
return person;

0 commit comments

Comments
 (0)