Skip to content

Commit

Permalink
review cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ncdiehl committed Apr 12, 2024
1 parent 5610f9f commit 45c27b1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion api-client/src/protocols/createProtocolAnalysis.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { POST, request } from '../request'

import type { ProtocolAnalysisSummary } from '@opentrons/shared-data'
import type { ResponsePromise } from '../request'
import type { HostConfig } from '../types'
import type { ProtocolAnalysisSummary } from '@opentrons/shared-data'
import type { RunTimeParameterCreateData } from '../runs'

interface CreateProtocolAnalysisData {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ describe('ProtocolSetupParameters', () => {
})
it('renders the other setting when boolean param is selected', () => {
render(props)
screen.debug()
expect(screen.getAllByText('On')).toHaveLength(2)
fireEvent.click(screen.getByText('Dry Run'))
expect(screen.getAllByText('On')).toHaveLength(3)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
import { useMutation, useQueryClient } from 'react-query'
import type {
UseMutationResult,
UseMutationOptions,
UseMutateFunction,
} from 'react-query'
import { createProtocolAnalysis } from '@opentrons/api-client'
import { useMutation, useQueryClient } from 'react-query'
import { useHost } from '../api'
import type { AxiosError } from 'axios'
import type {
ErrorResponse,
HostConfig,
RunTimeParameterCreateData,
} from '@opentrons/api-client'
import type { ProtocolAnalysisSummary } from '@opentrons/shared-data'
import type { AxiosError } from 'axios'
import type {
UseMutationResult,
UseMutationOptions,
UseMutateFunction,
} from 'react-query'

export interface CreateProtocolAnalysisVariables {
protocolKey: string
Expand Down Expand Up @@ -69,12 +69,12 @@ export function useCreateProtocolAnalysisMutation(
response.data
)
)
.catch(e => {
.catch((e: Error) => {
throw e
})
return response.data
})
.catch(e => {
.catch((e: Error) => {
throw e
}),
options
Expand Down

0 comments on commit 45c27b1

Please sign in to comment.