Redirect error on create_post page for not logged in users. #937 (#938)

This commit is contained in:
ernestwisniewski 2020-07-11 16:13:45 +02:00 committed by GitHub
parent cb77339370
commit 4b30b6d764
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -166,7 +166,7 @@ export class PostForm extends Component<PostFormProps, PostFormState> {
componentWillUnmount() { componentWillUnmount() {
this.subscription.unsubscribe(); this.subscription.unsubscribe();
this.choices.destroy(); this.choices && this.choices.destroy();
window.onbeforeunload = null; window.onbeforeunload = null;
} }