Skip to content

Commit dc6da53

Browse files
committed
fix(app): Avoid modifying the array when reading file URLs
1 parent 4a5bf01 commit dc6da53

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)