Skip to content

Commit

Permalink
fix: Fixed spelling of download path, backend is fixed. (#316)
Browse files Browse the repository at this point in the history
  • Loading branch information
coder-sett authored Feb 22, 2024
2 parents 0ece5f2 + e7b7fe6 commit 63dde50
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions apps/web/src/common/components/Table/Download.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ const Download = ({
pollingWhenHidden: false,
manual: true,
onSuccess: ({ data }, params) => {
if (data.status === Status.COMPLETE && data.downdload_path) {
apiDownloadFiles(data.downdload_path, fileName, downloadFinish);
if (data.status === Status.COMPLETE && data.download_path) {
apiDownloadFiles(data.download_path, fileName, downloadFinish);
cancel();
} else if (data.status === Status.UNKNOWN) {
downloadFinish();
Expand All @@ -54,8 +54,8 @@ const Download = ({
setTimeout(() => {
run(data.uuid);
}, 2000);
} else if (data.status === Status.COMPLETE && data.downdload_path) {
apiDownloadFiles(data.downdload_path, fileName, downloadFinish);
} else if (data.status === Status.COMPLETE && data.download_path) {
apiDownloadFiles(data.download_path, fileName, downloadFinish);
} else {
throw new Error('Download Error');
}
Expand Down

0 comments on commit 63dde50

Please sign in to comment.