Skip to content

Commit

Permalink
result type to string
Browse files Browse the repository at this point in the history
  • Loading branch information
prabh-t committed Jul 30, 2024
1 parent bd1989a commit a8eb805
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/services/ProtVarService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ export function downloadTextInput(inputArr: string[], assembly: string, email: s
);
}

export function downloadResult(id: string, type: ResultType, page: string|null, pageSize: string|null, assembly: string|null,
export function downloadResult(id: string, type: string, page: string|null, pageSize: string|null, assembly: string|null,
email: string, jobName: string, functional: boolean, population: boolean, structure: boolean) {
return api.post<any, string, AxiosResponse<DownloadResponse>>(
`${API_URL}/download`, id,
Expand Down
2 changes: 1 addition & 1 deletion src/ui/modal/DownloadModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ function DownloadModal(props: DownloadModalProps) {
const pageSize = page ? searchParams.get('pageSize') : null
const assembly = searchParams.get('assembly')

downloadResult(id, props.type, page, pageSize, assembly,
downloadResult(id, ResultType[props.type], page, pageSize, assembly,
form.email, form.jobName, form.fun, form.pop, form.str)
.then((response) => {
const downloadResponse = response.data
Expand Down

0 comments on commit a8eb805

Please sign in to comment.