From 7791d1d2c31687f6cf296b565dc90dc62ecddbc4 Mon Sep 17 00:00:00 2001 From: moklick Date: Mon, 11 Jan 2021 17:05:37 +0100 Subject: [PATCH] refactor(edges): source and target node must be initialized --- src/container/EdgeRenderer/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/container/EdgeRenderer/index.tsx b/src/container/EdgeRenderer/index.tsx index 8f11bac9..aa42964b 100644 --- a/src/container/EdgeRenderer/index.tsx +++ b/src/container/EdgeRenderer/index.tsx @@ -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; }