Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3356782
D4062.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
812 B
Referenced Files
None
Subscribers
None
D4062.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
@@ -58,12 +58,11 @@
const onChangeName = React.useCallback(
(event: SyntheticEvent<HTMLInputElement>) => {
const target = event.currentTarget;
+ const newName = firstLine(target.value);
setQueuedChanges(prevQueuedChanges =>
Object.freeze({
...prevQueuedChanges,
- name: firstLine(
- target.value !== threadInfo.name ? target.value : undefined,
- ),
+ name: newName !== threadInfo.name ? newName : undefined,
}),
);
},
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 24, 8:42 PM (21 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2577262
Default Alt Text
D4062.diff (812 B)
Attached To
Mode
D4062: [web] Fixed thread name clearing issue in `ThreadSettingGeneralTab`
Attached
Detach File
Event Timeline
Log In to Comment