Skip to content

Commit

Permalink
Merge pull request #871 from AI4Bharat/download_all
Browse files Browse the repository at this point in the history
fix download all related task zip error
  • Loading branch information
aparna-aa authored Jan 16, 2025
2 parents 3ba83f0 + 7834ce7 commit f386bcd
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/containers/Organization/Project/VideoList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,6 @@ const VideoList = ({ data, removeVideo }) => {
}
break;

case "BULK_VIDEO_DOWNLOAD":
exportZip(data, "video", videoName);
break;

default:
break;
}
Expand Down Expand Up @@ -161,9 +157,12 @@ const VideoList = ({ data, removeVideo }) => {

const handleDownload = async () => {
setOpenExportDialog(false);

const obj = new BulkDownloadForVideoAPI(videoIdForDowload, exportType);
dispatch(APITransport(obj));
const link = document.createElement("a");
link.href = obj.apiEndPoint();
document.body.appendChild(link);
link.click();
document.body.removeChild(link);
};

const result = data?.map((item, i) => {
Expand Down

0 comments on commit f386bcd

Please sign in to comment.