Skip to content

Commit

Permalink
Fixed: (UI) Change default search results sorting to age
Browse files Browse the repository at this point in the history
  • Loading branch information
mynameisbogdan committed Jul 5, 2023
1 parent 02a3c1b commit 7eac11f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion frontend/src/Search/SearchIndex.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/Store/Actions/releaseActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit 7eac11f

Please sign in to comment.