We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c605107 + 3b50b12 commit b68ac61Copy full SHA for b68ac61
src/container/EdgeRenderer/index.tsx
@@ -103,13 +103,7 @@ const Edge = ({
103
const sourcePosition = sourceHandle ? sourceHandle.position : Position.Bottom;
104
const targetPosition = targetHandle ? targetHandle.position : Position.Top;
105
106
- if (!sourceHandle) {
107
- // console.warn(`couldn't create edge for source handle id: ${sourceHandleId}; edge id: ${edge.id}`);
108
- return null;
109
- }
110
-
111
- if (!targetHandle) {
112
- // console.warn(`couldn't create edge for target handle id: ${targetHandleId}; edge id: ${edge.id}`);
+ if ((!sourceHandle || !targetHandle) && !onlyRenderVisibleElements) {
113
return null;
114
}
115
0 commit comments