Commit c17dad29 authored by Lukas Pravda's avatar Lukas Pravda
Browse files

get rid of event errors when scene not ready

parent 4c7b3d06
...@@ -110,9 +110,8 @@ class Visualization { ...@@ -110,9 +110,8 @@ class Visualization {
return; return;
} }
}); });
this.links?.attr('opacity', 1);
this.links.attr('opacity', 1); this.nodes?.attr('opacity', 1);
this.nodes.attr('opacity', 1);
} }
...@@ -145,8 +144,8 @@ class Visualization { ...@@ -145,8 +144,8 @@ class Visualization {
this.fireExternalNullEvent(Config.interactionMouseoutEvent); this.fireExternalNullEvent(Config.interactionMouseoutEvent);
} }
this.links.attr('opacity', 1); this.links?.attr('opacity', 1);
this.nodes.attr('opacity', 1); this.nodes?.attr('opacity', 1);
} }
private dragHandler = d3.drag() private dragHandler = d3.drag()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment