Skip to content

Commit

Permalink
rename const
Browse files Browse the repository at this point in the history
  • Loading branch information
alisonelizabeth committed Aug 18, 2020
1 parent a7c92b9 commit 759a000
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const DocumentsTab: React.FunctionComponent<Props> = ({
config: { documents: cachedDocuments, verbose: cachedVerbose },
} = testPipelineData;

const executePipeline = async () => {
const testPipeline = async () => {
const { isValid, data } = await form.submit();

if (!isValid) {
Expand Down Expand Up @@ -104,7 +104,7 @@ export const DocumentsTab: React.FunctionComponent<Props> = ({
form={form}
data-test-subj="testPipelineForm"
isInvalid={form.isSubmitted && !form.isValid}
onSubmit={executePipeline}
onSubmit={testPipeline}
error={form.getErrors()}
>
{/* Documents editor */}
Expand All @@ -128,7 +128,7 @@ export const DocumentsTab: React.FunctionComponent<Props> = ({
<EuiSpacer size="m" />

<EuiButton
onClick={executePipeline}
onClick={testPipeline}
size="s"
isLoading={isRunningTest}
disabled={form.isSubmitted && !form.isValid}
Expand Down

0 comments on commit 759a000

Please sign in to comment.