Page MenuHomePhabricator

D10175.diff
No OneTemporary

D10175.diff

diff --git a/web/avatars/edit-thread-avatar-menu.react.js b/web/avatars/edit-thread-avatar-menu.react.js
--- a/web/avatars/edit-thread-avatar-menu.react.js
+++ b/web/avatars/edit-thread-avatar-menu.react.js
@@ -61,7 +61,7 @@
const { target } = event;
invariant(target instanceof HTMLInputElement, 'target not input');
const uploadResult = await uploadAvatarMedia(target.files[0]);
- baseSetThreadAvatar(threadInfo.id, uploadResult);
+ await baseSetThreadAvatar(threadInfo.id, uploadResult);
},
[baseSetThreadAvatar, threadInfo.id, uploadAvatarMedia],
);
diff --git a/web/avatars/edit-user-avatar-menu.react.js b/web/avatars/edit-user-avatar-menu.react.js
--- a/web/avatars/edit-user-avatar-menu.react.js
+++ b/web/avatars/edit-user-avatar-menu.react.js
@@ -73,7 +73,7 @@
const { target } = event;
invariant(target instanceof HTMLInputElement, 'target not input');
const uploadResult = await uploadAvatarMedia(target.files[0]);
- baseSetUserAvatar(uploadResult);
+ await baseSetUserAvatar(uploadResult);
},
[baseSetUserAvatar, uploadAvatarMedia],
);

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 23, 2:15 AM (18 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2567370
Default Alt Text
D10175.diff (1 KB)

Event Timeline