fix: Connections can be highlighted multiple times (#6502)

* fix: Connections can be highlighted multiple times

* fix: remove spaces to fix clang-formating
This commit is contained in:
koenvanwijk
2022-10-10 20:34:27 +02:00
committed by GitHub
parent 12343d47a2
commit 581e8acf4b

View File

@@ -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 =