(nodeId: string)
| 170 | return source.includes('conditionAgentflow') || source.includes('conditionAgentAgentflow') || source.includes('humanInputAgentflow') |
| 171 | } |
| 172 | const findNodeColor = (nodeId: string) => { |
| 173 | const node = nodes.find((node) => node.id === nodeId) |
| 174 | return node?.data?.color |
| 175 | } |
| 176 | |
| 177 | // filter out edges that do not exist in nodes |
| 178 | edges = edges.filter((edge) => { |