mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-27 11:51:08 +00:00
This commit is contained in:
parent
cb77339370
commit
4b30b6d764
1 changed files with 1 additions and 1 deletions
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 a new issue