Fix removing collection files
authorDaniel Kos <daniel.kos@contractors.roche.com>
Mon, 19 Nov 2018 23:29:03 +0000 (00:29 +0100)
committerDaniel Kos <daniel.kos@contractors.roche.com>
Mon, 19 Nov 2018 23:29:03 +0000 (00:29 +0100)
Bug #14310

Arvados-DCO-1.1-Signed-off-by: Daniel Kos <daniel.kos@contractors.roche.com>

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) {