Skip to content
Snippets Groups Projects
Commit 9e1c2043 authored by Marcelo Querino Lima Alfonso's avatar Marcelo Querino Lima Alfonso
Browse files

add check for depiction before triggering external events

parent e4008b1f
No related branches found
No related tags found
2 merge requests!5Refactored code for diplaying aggregated ligand interactions,!4Added features for aggregated ligand interaction view and interactivity with heat map
......@@ -124,6 +124,7 @@ class Visualization {
}
private ligHeatmapMouseoverEventHandler(e: any) {
if (this.depiction === undefined) return;
const atomName = e.detail.name; // CustomEvent
const atom = this.depiction.atoms.filter(x => x.value >0 && x.name === atomName);
if (atom.length > 0) {
......@@ -134,6 +135,7 @@ class Visualization {
}
private ligHeatmapMouseoutEventHandler() {
if (this.depiction === undefined) return;
this.depiction.atomMouseLeaveEventHandler(true);
}
......
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