diff --git a/x-pack/plugins/ingest_pipelines/public/application/components/pipeline_processors_editor/components/test_pipeline/test_pipeline_flyout_tabs/tab_documents.tsx b/x-pack/plugins/ingest_pipelines/public/application/components/pipeline_processors_editor/components/test_pipeline/test_pipeline_flyout_tabs/tab_documents.tsx index c9db74297ef9b..8968416683c3e 100644 --- a/x-pack/plugins/ingest_pipelines/public/application/components/pipeline_processors_editor/components/test_pipeline/test_pipeline_flyout_tabs/tab_documents.tsx +++ b/x-pack/plugins/ingest_pipelines/public/application/components/pipeline_processors_editor/components/test_pipeline/test_pipeline_flyout_tabs/tab_documents.tsx @@ -48,7 +48,7 @@ export const DocumentsTab: React.FunctionComponent = ({ config: { documents: cachedDocuments, verbose: cachedVerbose }, } = testPipelineData; - const executePipeline = async () => { + const testPipeline = async () => { const { isValid, data } = await form.submit(); if (!isValid) { @@ -104,7 +104,7 @@ export const DocumentsTab: React.FunctionComponent = ({ form={form} data-test-subj="testPipelineForm" isInvalid={form.isSubmitted && !form.isValid} - onSubmit={executePipeline} + onSubmit={testPipeline} error={form.getErrors()} > {/* Documents editor */} @@ -128,7 +128,7 @@ export const DocumentsTab: React.FunctionComponent = ({