X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/3ddd45b007768a39591cd116b4a213cd39019e0c..4c34de655fc7f8839b205b48f460a168f302dd63:/src/views/link-panel/link-panel.tsx?ds=sidebyside

diff --git a/src/views/link-panel/link-panel.tsx b/src/views/link-panel/link-panel.tsx
index 4bff4ee7..b66aafb2 100644
--- a/src/views/link-panel/link-panel.tsx
+++ b/src/views/link-panel/link-panel.tsx
@@ -4,10 +4,17 @@
 
 import { Dispatch } from "redux";
 import { connect } from "react-redux";
-import { RootState } from '~/store/store';
-import { openContextMenu, resourceKindToContextMenuKind } from '~/store/context-menu/context-menu-actions';
-import { LinkPanelRoot, LinkPanelRootActionProps, LinkPanelRootDataProps } from '~/views/link-panel/link-panel-root';
-import { ResourceKind } from '~/models/resource';
+import { RootState } from 'store/store';
+import {
+    openContextMenu,
+    resourceUuidToContextMenuKind
+} from 'store/context-menu/context-menu-actions';
+import {
+    LinkPanelRoot,
+    LinkPanelRootActionProps,
+    LinkPanelRootDataProps
+} from 'views/link-panel/link-panel-root';
+import { ResourceKind } from 'models/resource';
 
 const mapStateToProps = (state: RootState): LinkPanelRootDataProps => {
     return {
@@ -17,7 +24,7 @@ const mapStateToProps = (state: RootState): LinkPanelRootDataProps => {
 
 const mapDispatchToProps = (dispatch: Dispatch): LinkPanelRootActionProps => ({
     onContextMenu: (event, resourceUuid) => {
-        const kind = resourceKindToContextMenuKind(resourceUuid);
+        const kind = dispatch<any>(resourceUuidToContextMenuKind(resourceUuid));
         if (kind) {
             dispatch<any>(openContextMenu(event, {
                 name: '',
