feat(web): end node support right port

This commit is contained in:
zhaoying
2026-03-19 20:03:59 +08:00
parent 3369b702e4
commit cd0ca9cae4
3 changed files with 3 additions and 24 deletions

View File

@@ -821,16 +821,12 @@ export const useWorkflowGraph = ({
// Node cannot connect to itself
if (sourceCell?.id === targetCell?.id) return false;
const sourceType = sourceCell?.getData()?.type;
const targetType = targetCell?.getData()?.type;
// Start node cannot be connection target
if (targetType === 'start') return false;
// End node cannot be connection source
if (sourceType === 'end') return false;
// Get source node and target node parent IDs
const sourceParentId = sourceCell?.getData()?.cycle;
const targetParentId = targetCell?.getData()?.cycle;