Page MenuHomePhabricator

D3980.id12460.diff
No OneTemporary

D3980.id12460.diff

diff --git a/web/modals/threads/thread-settings-general-tab.react.js b/web/modals/threads/thread-settings-general-tab.react.js
--- a/web/modals/threads/thread-settings-general-tab.react.js
+++ b/web/modals/threads/thread-settings-general-tab.react.js
@@ -1,6 +1,7 @@
// @flow
import * as React from 'react';
+import tinycolor from 'tinycolor2';
import {
changeThreadSettingsActionTypes,
@@ -51,8 +52,13 @@
}, [inputDisabled]);
const changeQueued: boolean = React.useMemo(
- () => Object.values(queuedChanges).some(v => v !== null && v !== undefined),
- [queuedChanges],
+ () =>
+ (queuedChanges.name !== null && queuedChanges.name !== undefined) ||
+ (queuedChanges.description !== null &&
+ queuedChanges.description !== undefined) ||
+ (!!queuedChanges.color &&
+ !tinycolor.equals(threadInfo.color, queuedChanges.color)),
+ [queuedChanges, threadInfo.color],
);
const onChangeName = React.useCallback(

File Metadata

Mime Type
text/plain
Expires
Thu, Nov 28, 3:52 PM (19 h, 9 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2594390
Default Alt Text
D3980.id12460.diff (973 B)

Event Timeline