We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9c56bc commit b8d6891Copy full SHA for b8d6891
packages/mgt-components/src/graph/graph.userWithPhoto.ts
@@ -75,7 +75,7 @@ export async function getUserWithPhoto(
75
}
76
} catch (e) {
77
//if 404 received (photo not found) but user already in cache, update timeCache value to prevent repeated 404 error / graph calls on each page refresh
78
- if (e.code === 'ErrorItemNotFound') {
+ if (e.code === 'ErrorItemNotFound' || e.code === 'ImageNotFound') {
79
storePhotoInCache(userId || 'me', schemas.photos.stores.users, { eTag: null, photo: null });
80
81
0 commit comments