Skip to content

Commit 9a56bed

Browse files
committed
Topology, reset endpoint highlighting
1 parent db77e6c commit 9a56bed

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

Protest/Front/topology.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,11 @@ class Topology extends Window {
202202

203203
if (this.selected) {
204204
this.selected.element.highlight.classList.remove("topology-selected");
205+
206+
for (const p in this.selected?.endpoint?.dot) {
207+
this.selected.endpoint.dot[p].setAttribute("stroke", "none");
208+
}
209+
205210
this.selected = null;
206211
}
207212
}
@@ -2600,10 +2605,8 @@ class Topology extends Window {
26002605
if (this.selected) {
26012606
this.selected.element.highlight.classList.remove("topology-selected");
26022607

2603-
if (this.selected.endpoint && this.selected.endpoint.dot) {
2604-
for (const p in this.selected.endpoint.dot) {
2605-
this.selected.endpoint.dot[p].setAttribute("stroke", "none");
2606-
}
2608+
for (const p in this.selected?.endpoint?.dot) {
2609+
this.selected.endpoint.dot[p].setAttribute("stroke", "none");
26072610
}
26082611
}
26092612

0 commit comments

Comments
 (0)