File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments