(state, ownProps)
| 158 | } |
| 159 | |
| 160 | const mapStateToProps = (state, ownProps) => { |
| 161 | const { collection, location, type } = ownProps; |
| 162 | |
| 163 | const query = collectionEntitySetsQuery(location, collection.id) |
| 164 | .setFilter('type', type) |
| 165 | .sortBy('label', 'asc') |
| 166 | .limit(10); |
| 167 | |
| 168 | return { |
| 169 | query, |
| 170 | result: selectEntitySetsResult(state, query), |
| 171 | }; |
| 172 | }; |
| 173 | |
| 174 | export default compose( |
| 175 | withRouter, |
nothing calls this directly
no test coverage detected