Wizard: Fix 400 when fetching packages
The request for package search in custom repositories was sent even when no custom repositories were selected, ending in 400. This fixes the problem.
This commit is contained in:
parent
ce94f72066
commit
c89b73687f
1 changed files with 1 additions and 1 deletions
|
|
@ -279,7 +279,7 @@ const Packages = () => {
|
|||
},
|
||||
});
|
||||
}
|
||||
if (debouncedSearchTerm.length > 2) {
|
||||
if (debouncedSearchTerm.length > 2 && customRepositories.length > 0) {
|
||||
if (toggleSourceRepos === RepoToggle.INCLUDED) {
|
||||
searchCustomRpms({
|
||||
apiContentUnitSearchRequest: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue