Skip to content

Commit bb8d8f6

Browse files
committed
Fix folder download after research_manifest API change
1 parent 5bce2e4 commit bb8d8f6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

deposit/static/deposit/js/dlgFileBrowseOperations.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ $(document).ready(function () {
122122
// Start with the directory
123123
const downloadEntries = [{ name: folderName + '/' }]
124124

125-
for (const item of data) {
125+
for (const item of data.manifest) {
126126
if (item.name.endsWith('/')) {
127127
// Sub-folder
128128
downloadEntries.push({ name: folderName + '/' + item.name })

research/static/research/js/dlgFileBrowseOperations.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ $(document).ready(function () {
118118
// Start with the directory
119119
const downloadEntries = [{ name: folderName + '/' }]
120120

121-
for (const item of data) {
121+
for (const item of data.manifest) {
122122
if (item.name.endsWith('/')) {
123123
// Sub-folder
124124
downloadEntries.push({ name: folderName + '/' + item.name })

0 commit comments

Comments
 (0)