Fix removing collection files
[arvados-workbench2.git] / src / store / collection-panel / collection-panel-files / collection-panel-files-actions.ts
index 6ee5ca0d2fd4e502196c9541eabddd453a845dbf..3f82d29e921e670fdf4f3b453290c9ec32de5c01 100644 (file)
@@ -39,7 +39,7 @@ export const removeCollectionFiles = (filePaths: string[]) =>
         if (currentCollection) {
             dispatch(snackbarActions.OPEN_SNACKBAR({ message: 'Removing...' }));
             try {
-                await services.collectionService.deleteFiles(currentCollection.uuid, filePaths);
+                await services.collectionService.deleteFiles('', filePaths);
                 dispatch<any>(loadCollectionFiles(currentCollection.uuid));
                 dispatch(snackbarActions.OPEN_SNACKBAR({ message: 'Removed.', hideDuration: 2000 }));
             } catch (e) {