[arvados-workbench2] updated: 2.5.0-82-g9d2d11ff

git repository hosting git at public.arvados.org
Fri Mar 17 03:10:17 UTC 2023


Summary of changes:
 .../collection-panel-files/collection-panel-files-actions.ts         | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

       via  9d2d11ffcf56ab3075fac66ac75d91448b4d8ea6 (commit)
      from  aa1a5aecf2252b735a0e9a33ac486402ba118eeb (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 9d2d11ffcf56ab3075fac66ac75d91448b4d8ea6
Author: Stephen Smith <stephen at curii.com>
Date:   Thu Mar 16 21:09:30 2023 -0400

    20029: Fix file remove context menu passing collection uuid with file path to delete method
    
    Arvados-DCO-1.1-Signed-off-by: Stephen Smith <stephen at curii.com>

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 e35c1560..547f1534 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'

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list