From 9d2d11ffcf56ab3075fac66ac75d91448b4d8ea6 Mon Sep 17 00:00:00 2001 From: Stephen Smith Date: Thu, 16 Mar 2023 21:09:30 -0400 Subject: [PATCH] 20029: Fix file remove context menu passing collection uuid with file path to delete method Arvados-DCO-1.1-Signed-off-by: Stephen Smith --- .../collection-panel-files/collection-panel-files-actions.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 e35c1560bf..547f1534d1 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 @@ -65,10 +65,11 @@ export const removeCollectionsSelectedFiles = () => export const FILE_REMOVE_DIALOG = 'fileRemoveDialog'; -export const openFileRemoveDialog = (filePath: string) => +export const openFileRemoveDialog = (fileUuid: string) => (dispatch: Dispatch, getState: () => RootState) => { - const file = getNodeValue(filePath)(getState().collectionPanelFiles); + const file = getNodeValue(fileUuid)(getState().collectionPanelFiles); if (file) { + const filePath = getFileFullPath(file); const isDirectory = file.type === CollectionFileType.DIRECTORY; const title = isDirectory ? 'Removing directory' -- 2.30.2