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

This commit is contained in:
Bogdan
2023-07-05 09:58:40 +03:00
parent 02a3c1b224
commit 7eac11f57a
2 changed files with 3 additions and 3 deletions

View File

@@ -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;
}

View File

@@ -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: {