refactor(edge): update background when label changes

This commit is contained in:
moklick
2021-02-25 17:40:16 +01:00
parent ae7f21e84f
commit 47b95f7250
+1 -1
View File
@@ -27,7 +27,7 @@ export default memo(
height: textBbox.height,
});
}
}, []);
}, [label]);
if (typeof label === 'undefined' || !label) {
return null;