Merge branch 'main' into 18692-frozen-projects-workbench-support
[arvados-workbench2.git] / src / store / context-menu / context-menu-actions.ts
index 7b1b0257c8cc243e6b51284fa2324d3a56c9ae89..3fb4d25d70af0e9d51844808696cc168dbdce99d 100644 (file)
@@ -192,7 +192,7 @@ export const openProcessContextMenu = (event: React.MouseEvent<HTMLElement>, pro
                 name: res.name,
                 description: res.description,
                 outputUuid: res.outputUuid || '',
-                workflowUuid: res.properties.workflowUuid || '',
+                workflowUuid: res.properties.template_uuid || '',
                 menuKind: ContextMenuKind.PROCESS_RESOURCE
             }));
         }
@@ -269,6 +269,8 @@ export const resourceUuidToContextMenuKind = (uuid: string, readonly = false) =>
                 return ContextMenuKind.ROOT_PROJECT;
             case ResourceKind.LINK:
                 return ContextMenuKind.LINK;
+            case ResourceKind.WORKFLOW:
+                return ContextMenuKind.WORKFLOW;
             default:
                 return;
         }