Skip to content

Commit

Permalink
fix: Fixed spelling of download path, backend is fixed.
Browse files Browse the repository at this point in the history
Signed-off-by: EdmondFrank <[email protected]>
  • Loading branch information
EdmondFrank committed Feb 22, 2024
1 parent 0ece5f2 commit e7b7fe6
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 e7b7fe6

Please sign in to comment.