Commit 9ffc238c authored by marc's avatar marc
Browse files

model_loader.js : fix bug with undefined IMGT field

parent ca3f0aa7
......@@ -556,7 +556,7 @@ Model_loader.prototype = {
elem.eValue = clone.eValue;
elem.seg = clone.seg
//remove unneeded elements sometimes left after IMGT interrogation
if (clone.seg.imgt["Sequence number"]!==null){
if (typeof clone.seg.imgt != 'undefined' && clone.seg.imgt["Sequence number"]!==null){
delete clone.seg.imgt["Sequence number"];} //m.clones[i].seg.imgt["Sequence number"]
Supports Markdown
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