fix(edges): use empty string instead of null when source-/target-handle is not present
This commit is contained in:
+1
-1
@@ -127,7 +127,7 @@ export const getOutgoers = (node: GraphNode, elements: Elements) => getConnected
|
||||
export const getIncomers = (node: GraphNode, elements: Elements) => getConnectedElements(node, elements, 'source')
|
||||
|
||||
export const getEdgeId = ({ source, sourceHandle, target, targetHandle }: Connection) =>
|
||||
`vueflow__edge-${source}${sourceHandle}-${target}${targetHandle}`
|
||||
`vueflow__edge-${source}${sourceHandle ?? ''}-${target}${targetHandle ?? ''}`
|
||||
|
||||
export const connectionExists = (edge: Edge, elements: Elements) =>
|
||||
elements.some(
|
||||
|
||||
Reference in New Issue
Block a user