From e2e52746bb78f9463573c216c756fdab8aae3be1 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Fri, 7 Jul 2023 17:26:56 +0300 Subject: [PATCH] Fix repeat search when limits are empty --- frontend/src/History/HistoryRowConnector.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/src/History/HistoryRowConnector.js b/frontend/src/History/HistoryRowConnector.js index 56137f080..567c0c4fe 100644 --- a/frontend/src/History/HistoryRowConnector.js +++ b/frontend/src/History/HistoryRowConnector.js @@ -1,4 +1,5 @@ import { push } from 'connected-react-router'; +import _ from 'lodash'; import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; @@ -49,14 +50,14 @@ class HistoryRowConnector extends Component { // Listeners onSearchPress = (query, indexerId, categories, type, limit, offset) => { - this.props.setSearchDefault({ + this.props.setSearchDefault(_.pickBy({ searchQuery: query, searchIndexerIds: [indexerId], searchCategories: categories, searchType: type, searchLimit: limit, searchOffset: offset - }); + })); this.props.push(`${window.Prowlarr.urlBase}/search`); };