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

pull/883/head
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
1 changed files with 1 additions and 1 deletions

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;
} }