Fix JS error when posting from page without router context (#9073)
Fix #9057
This commit is contained in:
1 parent
e3a1955276
commit
01c169e796
2 files changed
+2
-2
No files matched your search
@@ -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 = () => {
|
||||
|
||||
Reference in new issue
Block a user