diff --git a/core/rendered_connection.ts b/core/rendered_connection.ts index 24813feab1f..3a1c3238514 100644 --- a/core/rendered_connection.ts +++ b/core/rendered_connection.ts @@ -93,6 +93,10 @@ export class RenderedConnection extends Connection { if (this.trackedState === RenderedConnection.TrackedState.TRACKED) { this.db.removeConnection(this, this.y); } + if (this.highlightPath) { + dom.removeNode(this.highlightPath); + this.highlightPath = null; + } } /**