diff --git a/x-pack/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/ml_inference/pipeline_select.tsx b/x-pack/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/ml_inference/pipeline_select.tsx index 582348fd86e2b..1a682d37e439d 100644 --- a/x-pack/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/ml_inference/pipeline_select.tsx +++ b/x-pack/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/pipelines/ml_inference/pipeline_select.tsx @@ -45,19 +45,10 @@ export const PipelineSelect: React.FC = () => { } }; - const getActiveOptionIndex = (): number | undefined => { - const index = existingInferencePipelines.findIndex( - (pipelineOption) => pipelineOption.pipelineName === pipelineName - ); - - return index >= 0 ? index : undefined; - }; - return (