Skip to content

Commit 43a047e

Browse files
authored
Merge pull request #3234 from OpenNeuroOrg/3232-browser-download-fix
fix(app): Avoid modifying the array when reading file URLs for browser downloads
2 parents 3483470 + dc6da53 commit 43a047e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/openneuro-app/src/scripts/dataset/download/download-native.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ const downloadTree = async (
8282
// Skip files which are already complete
8383
if (fileHandle.size == file.size) continue
8484
const writable = await fileHandle.createWritable()
85-
const { body, status, statusText } = await fetch(file.urls.pop())
85+
const { body, status, statusText } = await fetch(file.urls[0])
8686
let loaded = 0
8787
const progress = new TransformStream({
8888
transform(chunk, controller) {

0 commit comments

Comments
 (0)