Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3342866
D10175.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D10175.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D10175: [web] await baseSetThreadAvatar/baseSetUserAvatar in onImageSelected
Attached
Detach File
Event Timeline
Log In to Comment