Fix: (UI) Maintain search type and parameters on repeat search

This commit is contained in:
Bogdan
2023-06-22 11:25:01 +03:00
parent 0de302ad48
commit b2b877a8c3
7 changed files with 255 additions and 163 deletions
+2 -2
View File
@@ -48,8 +48,8 @@ class HistoryRowConnector extends Component {
//
// Listeners
onSearchPress = (term, indexerId, categories) => {
this.props.setSearchDefault({ searchQuery: term, searchIndexerIds: [indexerId], searchCategories: categories });
onSearchPress = (term, indexerId, categories, type) => {
this.props.setSearchDefault({ searchQuery: term, searchIndexerIds: [indexerId], searchCategories: categories, searchType: type });
this.props.push(`${window.Prowlarr.urlBase}/search`);
};