diff --git a/webapp/src/components/DAGSvgs/DAGBoard.tsx b/webapp/src/components/DAGSvgs/DAGBoard.tsx index e9ab43b..60213f5 100644 --- a/webapp/src/components/DAGSvgs/DAGBoard.tsx +++ b/webapp/src/components/DAGSvgs/DAGBoard.tsx @@ -7,6 +7,7 @@ import { DAGEdge } from "./DAGEdge"; import { AddButton } from "./AddButton"; import { IteratorWrap } from "utils/iter"; import { DAGCircle } from "./DAGCircle"; +import { getDescriptionFromAutomationNode } from "utils/formatting"; export interface DAGCircleElm { @@ -87,7 +88,7 @@ export function* mapDataToElements({ height={st.nodeHeight} width={st.nodeWidth} loc={nodeLoc} - text={elm.node?.alias ?? elm.node.$smType} + text={getDescriptionFromAutomationNode(elm.node)} color={elm.node.$smType === 'action' ? 'green' : 'blue'} onXClick={elm.onRemove} /> diff --git a/webapp/src/components/DAGSvgs/DAGNode.tsx b/webapp/src/components/DAGSvgs/DAGNode.tsx index 9cd704c..7c221ba 100644 --- a/webapp/src/components/DAGSvgs/DAGNode.tsx +++ b/webapp/src/components/DAGSvgs/DAGNode.tsx @@ -42,7 +42,7 @@ export const DAGNode = ({