Skip to content

Commit 2fa2143

Browse files
committed
Merge pull request shakacode#286 from shakacode/fix-react-router-location
Fixed the setting of the location react-router
2 parents ae1601e + 9664363 commit 2fa2143

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/app/bundles/comments/startup/ServerRouterApp.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default (props, railsContext) => {
1111
let error;
1212
let redirectLocation;
1313
let routeProps;
14-
const location = { railsContext };
14+
const { location } = railsContext;
1515

1616
// See https://github.com/reactjs/react-router/blob/master/docs/guides/ServerRendering.md
1717
match({ routes, location }, (_error, _redirectLocation, _routeProps) => {

0 commit comments

Comments
 (0)