diff --git a/src/components/Edges/EdgeText.tsx b/src/components/Edges/EdgeText.tsx index 3292b0e1..55cc369b 100644 --- a/src/components/Edges/EdgeText.tsx +++ b/src/components/Edges/EdgeText.tsx @@ -27,7 +27,7 @@ export default memo( height: textBbox.height, }); } - }, []); + }, [label]); if (typeof label === 'undefined' || !label) { return null;