Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3285649
D4932.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
729 B
Referenced Files
None
Subscribers
None
D4932.diff
View Options
diff --git a/web/modals/threads/settings/thread-settings-general-tab.react.js b/web/modals/threads/settings/thread-settings-general-tab.react.js
--- a/web/modals/threads/settings/thread-settings-general-tab.react.js
+++ b/web/modals/threads/settings/thread-settings-general-tab.react.js
@@ -103,11 +103,10 @@
const changeThreadSettingsAction = React.useCallback(async () => {
try {
setErrorMessage('');
- const response = await callChangeThreadSettings({
+ return await callChangeThreadSettings({
threadID: threadInfo.id,
changes: queuedChanges,
});
- return response;
} catch (e) {
setErrorMessage('unknown_error');
setQueuedChanges(Object.freeze({}));
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 17, 12:51 PM (21 h, 34 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2524978
Default Alt Text
D4932.diff (729 B)
Attached To
Mode
D4932: [web] Simplify `return` value of `changeThreadSettingsAction`
Attached
Detach File
Event Timeline
Log In to Comment