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

return None if no display present

parent 618c8d76
No related branches found
No related tags found
1 merge request!5Refactored code for diplaying aggregated ligand interactions
......@@ -132,7 +132,10 @@ class pdbLigandEnv extends LitElement {
}
set zoom(data) {
if (this.display !== undefined) this.display.toggleZoom(data);
if (!this.display){
return
}
this.display.toggleZoom(data);
}
set atomNames(data) {
......
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