refactor(edges): source and target node must be initialized
This commit is contained in:
@@ -77,7 +77,8 @@ const Edge = ({
|
||||
return null;
|
||||
}
|
||||
|
||||
if (!sourceNode.__rf.width || !sourceNode.__rf.height) {
|
||||
// source and target node need to be initialized
|
||||
if (!sourceNode.__rf.width || !targetNode.__rf.width) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user