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