diff --git a/src/pages/flowEditor/components/nodeContentOther.tsx b/src/pages/flowEditor/components/nodeContentOther.tsx index c9eeb6c..5ffe32b 100644 --- a/src/pages/flowEditor/components/nodeContentOther.tsx +++ b/src/pages/flowEditor/components/nodeContentOther.tsx @@ -122,7 +122,7 @@ const renderSpecialNodeHandles = (isStartNode: boolean, isEndNode: boolean, data // 获取连接到特定 API 句柄的 edges const getConnectedEdgesForHandle = (edges: any[], nodeId: string, handleId: string, handleType: 'source' | 'target') => { - if (nodeId === 'start' || nodeId === 'end') return false; + if (nodeId === 'start' || nodeId === 'end') return []; return edges.filter(edge => { if (handleType === 'target') { // 检查目标节点ID和目标句柄ID都匹配