Commit 2ccc5851 authored by Ahmed Awan's avatar Ahmed Awan
Browse files

[25.0] Fix multiple file upload to collection creator

Fixes https://github.com/galaxyproject/galaxy/issues/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.
parent 01679117
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -333,7 +333,7 @@ function addUploadedFiles(files: HDASummary[]) {
                localize(`Dataset ${f.hid}: ${f.name} ${problem} and is an invalid element for this collection`),
                localize("Uploaded item is invalid")
            );
        } else {
        } else if (!file) {
            invalidElements.value.push("Uploaded item: " + f.name + " could not be added to the collection");
            Toast.error(
                localize(`Dataset ${f.hid}: ${f.name} could not be added to the collection`),