Wizard: Fix repositories recommendations

Repositories were not getting recommended after https://github.com/osbuild/image-builder-frontend/pull/2226 got merged. This fixes the problem.
This commit is contained in:
regexowl 2024-07-15 14:24:11 +02:00 committed by Ondřej Ezr
parent bafa531d00
commit ac60043199

View file

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