pl-fe: clear compose form after saving draft

Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
nicole mikołajczyk
2025-08-25 11:09:59 +02:00
parent 441caa9b4d
commit 3748261624

View File

@ -229,6 +229,7 @@ const ComposeForm = <ID extends string>({ id, shouldCondense, autoFocus, clickab
dispatch(saveDraftStatus(id));
closeModal('COMPOSE');
dispatch(resetCompose(id));
editorRef.current?.dispatchCommand(CLEAR_EDITOR_COMMAND, undefined);
toast.success(messages.draftSaved, {
actionLabel: messages.view,