refactor(edges): source and target node must be initialized

This commit is contained in:
moklick
2021-01-11 17:05:37 +01:00
parent 1bf6330583
commit 7791d1d2c3

View File

@@ -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;
}