Fixed: (History) Save limit and offset in history data

This commit is contained in:
Bogdan
2023-07-07 16:19:45 +03:00
parent e68b45636e
commit 21cc96d683
7 changed files with 86 additions and 35 deletions
+9 -2
View File
@@ -48,8 +48,15 @@ class HistoryRowConnector extends Component {
//
// Listeners
onSearchPress = (term, indexerId, categories, type) => {
this.props.setSearchDefault({ searchQuery: term, searchIndexerIds: [indexerId], searchCategories: categories, searchType: type });
onSearchPress = (query, indexerId, categories, type, limit, offset) => {
this.props.setSearchDefault({
searchQuery: query,
searchIndexerIds: [indexerId],
searchCategories: categories,
searchType: type,
searchLimit: limit,
searchOffset: offset
});
this.props.push(`${window.Prowlarr.urlBase}/search`);
};