MCPcopy Create free account
hub / github.com/alephdata/aleph / mapStateToProps

Function mapStateToProps

ui/src/components/EntitySet/EntitySetSelectorSection.jsx:160–172  ·  view source on GitHub ↗
(state, ownProps)

Source from the content-addressed store, hash-verified

158}
159
160const 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
174export default compose(
175 withRouter,

Callers

nothing calls this directly

Calls 5

selectEntitySetsResultFunction · 0.90
limitMethod · 0.80
sortByMethod · 0.80
setFilterMethod · 0.80

Tested by

no test coverage detected