Skip to content

Commit

Permalink
fix: Connections can be highlighted multiple times (#6502)
Browse files Browse the repository at this point in the history
* fix: Connections can be highlighted multiple times

* fix: remove spaces to fix clang-formating
  • Loading branch information
koenvanwijk committed Oct 10, 2022
1 parent 12343d4 commit 581e8ac
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/rendered_connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down

0 comments on commit 581e8ac

Please sign in to comment.