Commit c4870135 authored by Mikaël Salson's avatar Mikaël Salson
Browse files

germline_builder.js: Solve error with custom germlines

When using custome germlines the
this.m.germlineList.list[system]['recombinations'] was not defined and generated an error that prevented the loading of the germlines.
parent 1e84d191
......@@ -155,8 +155,8 @@ Germline.prototype = {
if (type=="D") type2="4"
if (type=="J") type2="3"
if (typeof this.m.germlineList.list[system] != 'undefined'){
if (typeof this.m.germlineList.list[system] != 'undefined'
&& typeof this.m.germlineList.list[system]['recombinations'] != 'undefined'){
if (typeof this.m.germlineList.list[system]['recombinations'][type2] != 'undefined' ){
for (var i=0; i<this.m.germlineList.list[system]['recombinations'][type2].length; i++){
var filename = this.m.germlineList.list[system]['recombinations'][type2][i]
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