Page MenuHomePhabricator

D4062.diff
No OneTemporary

D4062.diff

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

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)

Event Timeline