mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-10-01 01:36:12 -04:00
This commit is contained in:
parent
cb77339370
commit
4b30b6d764
2
ui/src/components/post-form.tsx
vendored
2
ui/src/components/post-form.tsx
vendored
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user