0
0
Fork 0

Fix JS error when posting from page without router context (#9073)

Fix #9057
This commit is contained in:
Eugen Rochko 2018-10-24 01:31:31 +02:00 committed by GitHub
parent e3a1955276
commit 01c169e796
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -88,7 +88,7 @@ class ComposeForm extends ImmutablePureComponent {
return;
}
this.props.onSubmit(this.context.router.history);
this.props.onSubmit(this.context.router ? this.context.router.history : null);
}
onSuggestionsClearRequested = () => {