Skip to content

Commit

Permalink
Fixed startup bug occurring when no trait data available
Browse files Browse the repository at this point in the history
  • Loading branch information
GuilhemSempere committed Jan 9, 2025
1 parent 15cb0a5 commit 8ca6cb3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/webapp/js/flapjack-bytes.js
Original file line number Diff line number Diff line change
Expand Up @@ -5348,7 +5348,8 @@
displayTraits = displayTraits == null ? this.dataSet.traitNames : displayTraits.split(";").filter(function (x) {
return _this3.dataSet.traitNames == null || _this3.dataSet.traitNames.includes(x);
});
Array.from(document.getElementById("displayTraitSelect").options).forEach(function (option) {
var displayTraitSelect = document.getElementById("displayTraitSelect");
if (displayTraitSelect != null /* otherwise we have no phenotype data*/) Array.from(displayTraitSelect.options).forEach(function (option) {
option.selected = displayTraits.includes(option.value);
});
var settings = {
Expand Down

0 comments on commit 8ca6cb3

Please sign in to comment.