From: Lucas Di Pentima Date: Wed, 15 Dec 2021 21:55:46 +0000 (-0300) Subject: 18584: Fixes error when creating a collection with selected files. X-Git-Tag: 2.4.0~24^2~1 X-Git-Url: https://git.arvados.org/arvados-workbench2.git/commitdiff_plain/7490775a0dd834c087f291219092fb350be9705f 18584: Fixes error when creating a collection with selected files. Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima --- diff --git a/src/store/collections/collection-partial-copy-actions.ts b/src/store/collections/collection-partial-copy-actions.ts index 8c4cb379..9f478d74 100644 --- a/src/store/collections/collection-partial-copy-actions.ts +++ b/src/store/collections/collection-partial-copy-actions.ts @@ -67,7 +67,7 @@ export const copyCollectionPartial = ({ name, description, projectUuid }: Collec return !paths.find(path => path.indexOf(file.replace(newCollection.uuid, '')) > -1); }); await services.collectionService.deleteFiles( - '', + newCollection.uuid, filesToDelete ); dispatch(dialogActions.CLOSE_DIALOG({ id: COLLECTION_PARTIAL_COPY_FORM_NAME }));