webpack/scenes/RedHatRepositories/components/Search.js in katello-3.11.2 vs webpack/scenes/RedHatRepositories/components/Search.js in katello-3.12.0.rc1

- old
+ new

@@ -44,16 +44,19 @@ getAutoCompleteParams(search) { const params = { organization_id: orgId(), search, }; - + let endpoint = ''; if (this.state.searchList.key === 'enabled') { params.enabled = true; + endpoint = '/repositories/auto_complete_search'; + } else if (this.state.searchList.key === 'available') { + endpoint = '/repository_sets/auto_complete_search'; } return { - endpoint: '/repository_sets/auto_complete_search', + endpoint, params, }; } render() {