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

pull/1752/head
Bogdan 11 months ago
parent 02a3c1b224
commit 7eac11f57a

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

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

Loading…
Cancel
Save