Browse Source

fix: clear backup after posting

master
hole-thu 3 years ago
parent
commit
5cba7c9ed1
  1. 4
      src/UserAction.js

4
src/UserAction.js

@ -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);

Loading…
Cancel
Save