X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/4417a36247e40e7b2204b19324922940395c5361..fa88d59460b053577e5403e27465495d369353f6:/src/store/workbench/workbench-actions.ts diff --git a/src/store/workbench/workbench-actions.ts b/src/store/workbench/workbench-actions.ts index 294aeaf8..bf21bd3f 100644 --- a/src/store/workbench/workbench-actions.ts +++ b/src/store/workbench/workbench-actions.ts @@ -437,7 +437,7 @@ export const copyCollection = (data: CopyFormDialogData) => async (dispatch: Dis } async function copySingleCollection(copyToProject: CollectionCopyResource) { - const newName = data.isSingle ? data.name : `Copy of: ${copyToProject.name}`; + const newName = data.isSingle || collectionsToCopy.length === 1 ? data.name : `Copy of: ${copyToProject.name}`; try { const collection = await dispatch( collectionCopyActions.copyCollection({