@kaspernj/api-maker 1.0.163 → 1.0.167
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/router.jsx +1 -1
- package/src/with-router.jsx +2 -1
package/package.json
CHANGED
package/src/router.jsx
CHANGED
package/src/with-router.jsx
CHANGED
|
@@ -116,9 +116,10 @@ export default (WrapperComponent) => class WithRouter extends React.Component {
|
|
|
116
116
|
render() {
|
|
117
117
|
const {path, routes, routeDefinitions, ...restProps} = this.props
|
|
118
118
|
const matchingRoute = this.findMatchingRoute()
|
|
119
|
+
const params = matchingRoute?.params || {}
|
|
119
120
|
const match = {
|
|
120
121
|
matchingRoute,
|
|
121
|
-
params
|
|
122
|
+
params
|
|
122
123
|
}
|
|
123
124
|
|
|
124
125
|
return (
|