diff --git a/core/rendered_connection.ts b/core/rendered_connection.ts index 933f18bb3..7330ff9da 100644 --- a/core/rendered_connection.ts +++ b/core/rendered_connection.ts @@ -280,6 +280,10 @@ export class RenderedConnection extends Connection { /** Add highlighting around this connection. */ highlight() { + if (this.highlightPath) { + // This connection is already highlighted + return; + } let steps; const sourceBlockSvg = (this.sourceBlock_); const renderConstants =