Fix text compose
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
948f272e37
commit
b8a19ff794
1 changed files with 3 additions and 3 deletions
|
@ -140,10 +140,10 @@ const ComposeForm = <ID extends string>({ id, shouldCondense, autoFocus, clickab
|
|||
if (!canSubmit) return;
|
||||
e?.preventDefault();
|
||||
|
||||
// dispatch(changeCompose(id, text));
|
||||
dispatch(submitCompose(id, { history }));
|
||||
dispatch(submitCompose(id, { history })).then(() => {
|
||||
editorRef.current?.dispatchCommand(CLEAR_EDITOR_COMMAND, undefined);
|
||||
}).catch(() => {});
|
||||
|
||||
editorRef.current?.dispatchCommand(CLEAR_EDITOR_COMMAND, undefined);
|
||||
};
|
||||
|
||||
const onSuggestionsClearRequested = () => {
|
||||
|
|
Loading…
Reference in a new issue