diff --git a/packages/sprotty/src/graph/views.tsx b/packages/sprotty/src/graph/views.tsx index a63d40c..05498fa 100644 --- a/packages/sprotty/src/graph/views.tsx +++ b/packages/sprotty/src/graph/views.tsx @@ -93,7 +93,11 @@ export class PolylineEdgeView extends RoutableView { junctionPoints.push(); } } - return {junctionPoints}; + if (junctionPoints.length > 0) { + return {junctionPoints}; + } + + return undefined; } protected renderLine(edge: SEdgeImpl, segments: Point[], context: RenderingContext, args?: IViewArgs): VNode {