Page MenuHomePhabricator

D4416.diff
No OneTemporary

D4416.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
@@ -23,7 +23,6 @@
import Button from '../../../components/button.react';
import LoadingIndicator from '../../../loading-indicator.react';
import Input from '../../input.react';
-import { useModalContext } from '../../modal-provider.react';
import ColorSelector from '../color-selector.react';
import css from './thread-settings-general-tab.css';
@@ -47,7 +46,6 @@
setErrorMessage,
} = props;
- const modalContext = useModalContext();
const dispatchActionPromise = useDispatchActionPromise();
const callChangeThreadSettings = useServerCall(changeThreadSettings);
@@ -109,7 +107,6 @@
threadID: threadInfo.id,
changes: queuedChanges,
});
- modalContext.popModal();
return response;
} catch (e) {
setErrorMessage('unknown_error');
@@ -118,7 +115,6 @@
}
}, [
callChangeThreadSettings,
- modalContext,
queuedChanges,
setErrorMessage,
setQueuedChanges,

File Metadata

Mime Type
text/plain
Expires
Mon, Dec 23, 9:20 AM (18 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2694319
Default Alt Text
D4416.diff (1 KB)

Event Timeline