From 7eac11f57aab77341818c5aca1be028023cc95ed Mon Sep 17 00:00:00 2001 From: Bogdan Date: Wed, 5 Jul 2023 09:58:40 +0300 Subject: [PATCH] Fixed: (UI) Change default search results sorting to age --- frontend/src/Search/SearchIndex.js | 2 +- frontend/src/Store/Actions/releaseActions.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/Search/SearchIndex.js b/frontend/src/Search/SearchIndex.js index 4faa598a2..62748f641 100644 --- a/frontend/src/Search/SearchIndex.js +++ b/frontend/src/Search/SearchIndex.js @@ -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; } diff --git a/frontend/src/Store/Actions/releaseActions.js b/frontend/src/Store/Actions/releaseActions.js index 336c9add8..76da09c9d 100644 --- a/frontend/src/Store/Actions/releaseActions.js +++ b/frontend/src/Store/Actions/releaseActions.js @@ -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: {