X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/52f6efaa4834fcbcb356c3509171f95d2f1af1c7..48bc68176ea8a7cc4ee0cfc7ded292c5839f22af:/src/views-components/data-explorer/data-explorer.tsx

diff --git a/src/views-components/data-explorer/data-explorer.tsx b/src/views-components/data-explorer/data-explorer.tsx
index 8c95355f62..371569d1b5 100644
--- a/src/views-components/data-explorer/data-explorer.tsx
+++ b/src/views-components/data-explorer/data-explorer.tsx
@@ -15,7 +15,7 @@ import { DataTableFilters } from '~/components/data-table-filters/data-table-fil
 interface Props {
     id: string;
     onRowClick: (item: any) => void;
-    onContextMenu?: (event: React.MouseEvent<HTMLElement>, item: any) => void;
+    onContextMenu?: (event: React.MouseEvent<HTMLElement>, item: any, isAdmin?: boolean) => void;
     onRowDoubleClick: (item: any) => void;
     extractKey?: (item: any) => React.Key;
 }
@@ -24,7 +24,8 @@ const mapStateToProps = (state: RootState, { id }: Props) => {
     const progress = state.progressIndicator.find(p => p.id === id);
     const working = progress && progress.working;
     const currentRoute = state.router.location ? state.router.location.pathname : '';
-    return { ...getDataExplorer(state.dataExplorer, id), working, paperKey: currentRoute };
+    const currentItemUuid = currentRoute === '/workflows' ? state.properties.workflowPanelDetailsUuid : state.detailsPanel.resourceUuid;
+    return { ...getDataExplorer(state.dataExplorer, id), working, paperKey: currentRoute, currentItemUuid };
 };
 
 const mapDispatchToProps = () => {
