From 598fc0e4b4d5ae4c66f200a5354df9bdcd258f12 Mon Sep 17 00:00:00 2001 From: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Date: Thu, 7 Dec 2023 12:48:22 -0500 Subject: [PATCH] [8.12] Fix existing pipeline list keyboard accessibility (#172680) (#172852) # Backport This will backport the following commits from `main` to `8.12`: - [Fix existing pipeline list keyboard accessibility (#172680)](https://github.com/elastic/kibana/pull/172680) ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) Co-authored-by: Mike Pellegrini --- .../pipelines/ml_inference/pipeline_select.tsx | 9 --------- 1 file changed, 9 deletions(-) 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 (