Skip to content
Snippets Groups Projects
Commit 2f35ecae authored by Ibrahim Roshan Kunnakkattu's avatar Ibrahim Roshan Kunnakkattu
Browse files

fix: return None if substructure data is not set

parent a44748c7
No related branches found
No related tags found
1 merge request!5Refactored code for diplaying aggregated ligand interactions
......@@ -128,7 +128,7 @@ class pdbLigandEnv extends LitElement {
}
set highlightColor(data) {
if (!data || !this.display) return;
if (!data || !this.display || !this.substructureHighlight) return;
this.highlightColor = data;
this.display.addLigandHighlight(this.substructureHighlight, this.highlightColor);
......
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