draft empty after submit post

This commit is contained in:
feruz 2020-01-27 07:56:01 +02:00
parent 3a99197cf8
commit e7ac13b301

View File

@ -274,6 +274,8 @@ class EditorContainer extends Component {
0, 0,
) )
.then(() => { .then(() => {
setDraftPost({ title: '', body: '', tags: '' }, currentAccount.name);
dispatch( dispatch(
toastNotification( toastNotification(
intl.formatMessage({ intl.formatMessage({
@ -284,8 +286,6 @@ class EditorContainer extends Component {
this.setState({ isPostSending: false }); this.setState({ isPostSending: false });
setDraftPost({ title: '', body: '', tags: '' }, currentAccount.name);
navigation.navigate({ navigation.navigate({
routeName: ROUTES.SCREENS.POST, routeName: ROUTES.SCREENS.POST,
params: { params: {