Skip to content

Commit

Permalink
fix: Fix multiple downloads of files
Browse files Browse the repository at this point in the history
  • Loading branch information
PintoGideon committed Feb 11, 2025
1 parent c2f89b2 commit 0437fdf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/store/cart/downloadSaga.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ function* handleIndividualDownload(
function* handleDownload(action: IActionTypeParam) {
const { paths, username } = action.payload;
for (const path of paths) {
yield fork(handleIndividualDownload, path, username, "Download Pipeline");
yield call(handleIndividualDownload, path, username, "Download Pipeline");
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/store/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const createLinkAndDownload = (url: string, fileName: string) => {
document.body.removeChild(link);
};

export const downloadPublicFile = async (file: FileBrowserFolderFile) => {
export const downloadPublicFile = (file: FileBrowserFolderFile) => {
const fileName = getFileName(file.data.fname);
const url = file.collection.items[0].links[0].href;
if (!url) {
Expand Down

0 comments on commit 0437fdf

Please sign in to comment.