Commit 0db661c0 authored by Maxym Borodenko's avatar Maxym Borodenko
Browse files

Default sorting

parent 8d1a0509
......@@ -114,8 +114,8 @@ const mapStateToProps = (state, ownProps) => ({
tab: ownProps.params.tab || 'datasets', // current tab, or ownProps.location.pathname
pageCurrent: +ownProps.location.query.p || 0, // current page
pageSize: +ownProps.location.query.l || 20, // page size
pageSort: ownProps.location.query.s, // page sort
pageDir: ownProps.location.query.d, // page sort direction
pageSort: ownProps.location.query.s || 'lastModifiedDate', // page sort
pageDir: ownProps.location.query.d || 'DESC', // page sort direction
datasets: state.datasets.paged,
descriptors: state.descriptors.paged,
descriptorLists: state.descriptorList.paged,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment