(state, ownProps)
| 324 | } |
| 325 | |
| 326 | const mapStateToProps = (state, ownProps) => { |
| 327 | const { query } = ownProps; |
| 328 | const sort = query.getSort(); |
| 329 | |
| 330 | return { |
| 331 | sort: !_.isEmpty(sort) |
| 332 | ? { |
| 333 | field: sort.field.replace('properties.', ''), |
| 334 | direction: sort.direction, |
| 335 | } |
| 336 | : {}, |
| 337 | result: selectEntitiesResult(state, query), |
| 338 | }; |
| 339 | }; |
| 340 | |
| 341 | export default compose( |
| 342 | withRouter, |
nothing calls this directly
no test coverage detected