Skip to content

Commit

Permalink
Merge pull request #2817 from marmelab/editcontroller-location-required
Browse files Browse the repository at this point in the history
[RFR] Fix error when using Edit component as expand in list
  • Loading branch information
Gildas Garcia committed Jan 28, 2019
2 parents d13389d + 32370a2 commit 47f7fdf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
6 changes: 1 addition & 5 deletions packages/ra-core/src/controller/EditController.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,11 +176,7 @@ function mapStateToProps(state, props) {
}

export default compose(
checkMinimumRequiredProps('Edit', [
'basePath',
'location',
'resource',
]),
checkMinimumRequiredProps('Edit', ['basePath', 'resource']),
connect(
mapStateToProps,
{
Expand Down
6 changes: 1 addition & 5 deletions packages/ra-core/src/controller/ShowController.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,11 +133,7 @@ function mapStateToProps(state, props) {
}

export default compose(
checkMinimumRequiredProps('Show', [
'basePath',
'location',
'resource',
]),
checkMinimumRequiredProps('Show', ['basePath', 'resource']),
connect(
mapStateToProps,
{ crudGetOne: crudGetOneAction }
Expand Down

0 comments on commit 47f7fdf

Please sign in to comment.