IO-1585 Remove unused function.
This commit is contained in:
@@ -142,20 +142,3 @@ export function JobsDocumentsDownloadButton({
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
const downloadAs = (url, name, onDownloadProgress, onCompleted) => {
|
||||
cleanAxios
|
||||
.get(url, {
|
||||
headers: {
|
||||
"Content-Type": "application/octet-stream",
|
||||
},
|
||||
responseType: "blob",
|
||||
onDownloadProgress: onDownloadProgress,
|
||||
})
|
||||
.then((response) => {
|
||||
onCompleted && onCompleted();
|
||||
})
|
||||
.catch((err) => {
|
||||
console.log("error", err);
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user