From: Daniel Kos Date: Mon, 19 Nov 2018 23:29:03 +0000 (+0100) Subject: Fix removing collection files X-Git-Tag: 1.3.0~19^2~2^2^2 X-Git-Url: https://git.arvados.org/arvados-workbench2.git/commitdiff_plain/c31b1e6d6d213bbae060d1111e3831c728433466 Fix removing collection files Bug #14310 Arvados-DCO-1.1-Signed-off-by: Daniel Kos --- diff --git a/src/store/collection-panel/collection-panel-files/collection-panel-files-actions.ts b/src/store/collection-panel/collection-panel-files/collection-panel-files-actions.ts index 6ee5ca0d..3f82d29e 100644 --- a/src/store/collection-panel/collection-panel-files/collection-panel-files-actions.ts +++ b/src/store/collection-panel/collection-panel-files/collection-panel-files-actions.ts @@ -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(loadCollectionFiles(currentCollection.uuid)); dispatch(snackbarActions.OPEN_SNACKBAR({ message: 'Removed.', hideDuration: 2000 })); } catch (e) {