From 47b95f7250b80ddb8dbc84221f32b96028d30cd7 Mon Sep 17 00:00:00 2001 From: moklick Date: Thu, 25 Feb 2021 17:40:16 +0100 Subject: [PATCH] refactor(edge): update background when label changes --- src/components/Edges/EdgeText.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;