mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-04-24 05:47:22 -04:00
Fixed: (UI) Prevent passing NaN values to search API when using invalid ids
This commit is contained in:
parent
376202e2af
commit
a5b5e7a3a5
1 changed files with 2 additions and 2 deletions
|
@ -28,11 +28,11 @@ function createMapStateToProps() {
|
|||
}
|
||||
|
||||
if (params.indexerIds && !defaultIndexerIds.length) {
|
||||
defaultSearchQueryParams.searchIndexerIds = params.indexerIds.split(',').filter(Boolean).map((id) => Number(id));
|
||||
defaultSearchQueryParams.searchIndexerIds = params.indexerIds.split(',').map((id) => Number(id)).filter(Boolean);
|
||||
}
|
||||
|
||||
if (params.categories && !defaultCategories.length) {
|
||||
defaultSearchQueryParams.searchCategories = params.categories.split(',').filter(Boolean).map((id) => Number(id));
|
||||
defaultSearchQueryParams.searchCategories = params.categories.split(',').map((id) => Number(id)).filter(Boolean);
|
||||
}
|
||||
|
||||
if (params.type && defaultSearchType === 'search') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue