diff --git a/web/modals/threads/thread-settings-modal.react.js b/web/modals/threads/thread-settings-modal.react.js --- a/web/modals/threads/thread-settings-modal.react.js +++ b/web/modals/threads/thread-settings-modal.react.js @@ -2,7 +2,6 @@ import classNames from 'classnames'; import invariant from 'invariant'; -import _pickBy from 'lodash/fp/pickBy'; import * as React from 'react'; import { @@ -95,6 +94,7 @@ +queuedChanges: ThreadChanges, +setQueuedChanges: SetState, +namePlaceholder: string, + +changeQueued: boolean, }; class ThreadSettingsModal extends React.PureComponent { nameInput: ?HTMLInputElement; @@ -154,18 +154,6 @@ : this.props.threadInfo[key]; } - changeQueued() { - return ( - Object.keys( - _pickBy( - value => value !== null && value !== undefined, - // the lodash/fp libdef coerces the returned object's properties to the - // same type, which means it only works for object-as-maps $FlowFixMe - )(this.props.queuedChanges), - ).length > 0 - ); - } - render() { const { threadInfo } = this.props; const inputDisabled = @@ -223,7 +211,7 @@