mirror of
https://github.com/LemmyNet/lemmy
synced 2024-11-19 03:25:29 +00: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