Fixed: (UI) Change default search results sorting to age

pull/1752/head
Bogdan 1 year ago
parent 02a3c1b224
commit 7eac11f57a

@ -146,7 +146,7 @@ class SearchIndex extends Component {
} = this.props; } = this.props;
// Reset if not sorting by sortTitle // Reset if not sorting by sortTitle
if (sortKey !== 'title') { if (sortKey !== 'sortTitle') {
this.setState({ jumpBarItems: { order: [] } }); this.setState({ jumpBarItems: { order: [] } });
return; return;
} }

@ -31,9 +31,9 @@ export const defaultState = {
error: null, error: null,
grabError: null, grabError: null,
items: [], items: [],
sortKey: 'title', sortKey: 'age',
sortDirection: sortDirections.ASCENDING, sortDirection: sortDirections.ASCENDING,
secondarySortKey: 'title', secondarySortKey: 'sortTitle',
secondarySortDirection: sortDirections.ASCENDING, secondarySortDirection: sortDirections.ASCENDING,
defaults: { defaults: {

Loading…
Cancel
Save