fix: clear backup after posting

This commit is contained in:
2022-08-30 00:00:16 +08:00
parent 99b703017b
commit 5cba7c9ed1

View File

@@ -592,13 +592,13 @@ export class PostForm extends Component {
throw new Error(json.msg);
}
window.CW_BACKUP = '';
window.POLL_BACKUP = null;
this.setState(
{
loading_status: 'done',
text: '',
preview: false,
cw: null,
has_poll: false,
},
() => {
this.area_ref.current.clear_and_then(this.props.on_complete);