Skip to content
Snippets Groups Projects
Commit a5f4aebb authored by vkovtun's avatar vkovtun
Browse files

BIS-753: Fixed broken download.

parent 62d084a5
No related branches found
No related tags found
1 merge request!40SSDM-13578 : 2PT : Database and V3 Implementation - include the new AFS "free"...
......@@ -186,7 +186,9 @@ class DataBrowser extends React.Component {
const link = document.createElement('a')
link.href = window.URL.createObjectURL(blob)
link.download = file.name
document.body.appendChild(link);
link.click()
document.body.removeChild(link);
} finally {
this.setState({ loading: false })
}
......
......@@ -218,7 +218,7 @@ export default class DataBrowserController extends ComponentController {
while (offset < file.size) {
const blob = await this._download(file, offset)
dataArray.push(await new Uint8Array(blob.arrayBuffer()))
dataArray.push(await blob.arrayBuffer())
offset += CHUNK_SIZE
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment