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:
regexowl 2024-07-11 15:23:49 +02:00 committed by Ondřej Ezr
parent ce94f72066
commit c89b73687f

View file

@ -279,7 +279,7 @@ const Packages = () => {
},
});
}
if (debouncedSearchTerm.length > 2) {
if (debouncedSearchTerm.length > 2 && customRepositories.length > 0) {
if (toggleSourceRepos === RepoToggle.INCLUDED) {
searchCustomRpms({
apiContentUnitSearchRequest: {