mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-20 20:01:56 +03:00
draft empty after submit post
This commit is contained in:
parent
3a99197cf8
commit
e7ac13b301
@ -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: {
|
||||||
|
Loading…
Reference in New Issue
Block a user