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

Function mapStateToProps

ui/src/components/EntityTable/EntityTable.jsx:326–339  ·  view source on GitHub ↗
(state, ownProps)

Source from the content-addressed store, hash-verified

324}
325
326const 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
341export default compose(
342 withRouter,

Callers

nothing calls this directly

Calls 2

selectEntitiesResultFunction · 0.90
getSortMethod · 0.80

Tested by

no test coverage detected