refactor(edge): update background when label changes
This commit is contained in:
@@ -27,7 +27,7 @@ export default memo(
|
||||
height: textBbox.height,
|
||||
});
|
||||
}
|
||||
}, []);
|
||||
}, [label]);
|
||||
|
||||
if (typeof label === 'undefined' || !label) {
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user