Skip to content

Commit 2ccc585

Browse files
[25.0] Fix multiple file upload to collection creator
Fixes #20454 The `if` condition in `addUploadedFiles` in `ListCollectionCreator` was incorrectly flagging uploaded items as invalid if they've already been added to the list once, and the function is called again.
1 parent 0167911 commit 2ccc585

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/src/components/Collections/ListCollectionCreator.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ function addUploadedFiles(files: HDASummary[]) {
333333
localize(`Dataset ${f.hid}: ${f.name} ${problem} and is an invalid element for this collection`),
334334
localize("Uploaded item is invalid")
335335
);
336-
} else {
336+
} else if (!file) {
337337
invalidElements.value.push("Uploaded item: " + f.name + " could not be added to the collection");
338338
Toast.error(
339339
localize(`Dataset ${f.hid}: ${f.name} could not be added to the collection`),

0 commit comments

Comments
 (0)