Skip to content

Commit

Permalink
Merge pull request #3369 from solgenomics/topic/fieldmap_auth
Browse files Browse the repository at this point in the history
fix fieldmap auth
  • Loading branch information
lukasmueller authored Feb 26, 2021
2 parents ee666bd + f1cb358 commit 9878dbe
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions mason/breeders_toolbox/trial/phenotype_heatmap.mas
Original file line number Diff line number Diff line change
Expand Up @@ -422,9 +422,7 @@ jQuery(document).ready( function() {
'pageSize':1000,
'page':0
},
headers: {
'Authorization': `Bearer ` + auth_token,
},
headers: (auth_token)? {'Authorization': `Bearer ` + auth_token } : {},
beforeSend: function() {
jQuery("#working_modal").modal("show");
},
Expand Down Expand Up @@ -776,9 +774,7 @@ jQuery(document).ready( function() {
jQuery("#ctrldiv").css("display", "none");
jQuery.ajax( {
//url: '/ajax/breeders/trial/'+trial_id+'/coords',
headers: {
'Authorization': `Bearer ` + auth_token,
},
headers: (auth_token)? {'Authorization': `Bearer ` + auth_token } : {},
url: '/brapi/v1/studies/'+trial_id+'/layout?pageSize=10000&page=0',
beforeSend: function() {
jQuery("#working_modal").modal("show");
Expand Down Expand Up @@ -1346,9 +1342,7 @@ jQuery(document).ready( function() {
jQuery("#trait_heatmap").css("display", "none");
field_map_view();
jQuery.ajax ( {
headers: {
'Authorization': `Bearer ` + auth_token,
},
headers: (auth_token)? {'Authorization': `Bearer ` + auth_token } : {},
url: '/brapi/v1/studies/'+ <% $trial_id %> +'/observationvariables?pageSize=1000000',
//url : '/ajax/breeders/trial/'+ <% $trial_id %> + '/traits_assayed?stock_type='+value,
beforeSend: function() {
Expand Down

0 comments on commit 9878dbe

Please sign in to comment.