mirror of
https://github.com/Prowlarr/Prowlarr
synced 2025-12-06 16:43:25 +01:00
parent
40d55b915e
commit
ab5cf45d88
2 changed files with 7 additions and 12 deletions
|
|
@ -39,7 +39,7 @@ class SearchFooter extends Component {
|
|||
searchQuery
|
||||
} = this.state;
|
||||
|
||||
if (searchQuery !== '' || searchCategories !== [] || searchIndexerIds !== []) {
|
||||
if (searchQuery !== '' || searchCategories.length > 0 || searchIndexerIds.length > 0) {
|
||||
this.onSearchPress();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -77,8 +77,6 @@ public ActionResult<SearchResource> Create(SearchResource release)
|
|||
|
||||
[HttpGet]
|
||||
public Task<List<SearchResource>> GetAll(string query, [FromQuery] List<int> indexerIds, [FromQuery] List<int> categories)
|
||||
{
|
||||
if (query.IsNotNullOrWhiteSpace())
|
||||
{
|
||||
if (indexerIds.Any())
|
||||
{
|
||||
|
|
@ -90,9 +88,6 @@ public Task<List<SearchResource>> GetAll(string query, [FromQuery] List<int> ind
|
|||
}
|
||||
}
|
||||
|
||||
return Task.FromResult(new List<SearchResource>());
|
||||
}
|
||||
|
||||
private async Task<List<SearchResource>> GetSearchReleases(string query, List<int> indexerIds, List<int> categories)
|
||||
{
|
||||
try
|
||||
|
|
|
|||
Loading…
Reference in a new issue