refs #13828 Merge branch 'origin/13828-trash-view'
[arvados-workbench2.git] / src / store / context-menu / context-menu-actions.ts
index 85e576112f60cc773aa471e248f30c79acb526c7..2b0e6f8f8bd2aad4192397459c79927862264166 100644 (file)
@@ -85,6 +85,13 @@ export const openSidePanelContextMenu = (event: React.MouseEvent<HTMLElement>, i
 
 export const openProcessContextMenu = (event: React.MouseEvent<HTMLElement>) =>
     (dispatch: Dispatch, getState: () => RootState) => {
+        const { location } = getState().router;
+        const pathname = location ? location.pathname : '';
+        // ToDo: We get error from matchProcessRoute
+        // const match = matchProcessRoute(pathname); 
+        // console.log('match: ', match);
+        // const uuid = match ? match.params.id : '';
+        const uuid = pathname.split('/').slice(-1)[0];
         const resource = {
             uuid: '',
             ownerUuid: '',