1
0
Fork 0
mirror of https://github.com/LemmyNet/lemmy.git synced 2025-04-21 02:14:07 +00:00

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

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() {
this.subscription.unsubscribe();
this.choices.destroy();
this.choices && this.choices.destroy();
window.onbeforeunload = null;
}