fix: clear backup after posting
This commit is contained in:
@@ -592,13 +592,13 @@ export class PostForm extends Component {
|
|||||||
throw new Error(json.msg);
|
throw new Error(json.msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
window.CW_BACKUP = '';
|
|
||||||
window.POLL_BACKUP = null;
|
|
||||||
this.setState(
|
this.setState(
|
||||||
{
|
{
|
||||||
loading_status: 'done',
|
loading_status: 'done',
|
||||||
text: '',
|
text: '',
|
||||||
preview: false,
|
preview: false,
|
||||||
|
cw: null,
|
||||||
|
has_poll: false,
|
||||||
},
|
},
|
||||||
() => {
|
() => {
|
||||||
this.area_ref.current.clear_and_then(this.props.on_complete);
|
this.area_ref.current.clear_and_then(this.props.on_complete);
|
||||||
|
|||||||
Reference in New Issue
Block a user