This commit is contained in:
Dimitri POSTOLOV
2025-03-25 19:35:08 +01:00
parent c4adfcfa8a
commit c215455735
3 changed files with 17 additions and 3 deletions
@@ -8,9 +8,9 @@ function EdgeTextComponent({
x,
y,
label,
labelStyle = {},
labelStyle,
labelShowBg = true,
labelBgStyle = {},
labelBgStyle,
labelBgPadding = [2, 4],
labelBgBorderRadius = 2,
children,
@@ -34,7 +34,7 @@ function EdgeTextComponent({
}
}, [label]);
if (typeof label === 'undefined' || !label) {
if (!label) {
return null;
}