forked from KathiraveluLab/DHGWorkflow
-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
In 3-component.js, the addEdge method calls this.validiateEdge() with edgeData.targetID for both the sourceID and targetID parameters:
const message = this.validiateEdge(edgeLabel, edgeStyle,
edgeData.targetID, edgeData.targetID, null, 'New');
The third argument should be edgeData.sourceID.
Steps to reproduce
- Define a custom edge validator that relies on the source node's label (e.g., reject edges originating from a specific node)
- Try to create an edge from that node to another node via the edge creation modal
- Observe that the validator sees the target node's label for both source and target, so it doesn't reject the edge
Expected behavior:
validiateEdge receives the actual source node ID so validators can correctly distinguish source from target
Actual behavior:
The target node's ID is passed as both sourceID and targetID, making source-aware validation logic ineffectiv
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels