18584: Fixes error when creating a collection with selected files.
[arvados-workbench2.git] / src / store / collections / collection-partial-copy-actions.ts
index 8c4cb37971d004875cb7dd41648a1dfbf8196757..9f478d74b71cd5d1bd292167e4626f226ba14dbe 100644 (file)
@@ -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 }));