diff --git a/src/store/cart/downloadSaga.ts b/src/store/cart/downloadSaga.ts index 5bfa2daf6..18f04d495 100644 --- a/src/store/cart/downloadSaga.ts +++ b/src/store/cart/downloadSaga.ts @@ -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"); } } diff --git a/src/store/hooks.ts b/src/store/hooks.ts index 1c3a874d7..43c448d43 100644 --- a/src/store/hooks.ts +++ b/src/store/hooks.ts @@ -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) {