aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorzsloan2021-06-17 19:43:35 +0000
committerzsloan2021-06-17 19:43:35 +0000
commit90a427fcc855910a812f3cee710ede335071768a (patch)
treea1f64726dbc6f69c4db5bbd69995a3be34b351d1 /wqflask
parenta5981b8e71380b171b210d55da58e5037b455a6c (diff)
downloadgenenetwork2-90a427fcc855910a812f3cee710ede335071768a.tar.gz
Fixed issue that caused filtering by attribute values to not work if attribute values didn't exist for some samples
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/static/new/javascript/show_trait.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/wqflask/wqflask/static/new/javascript/show_trait.js b/wqflask/wqflask/static/new/javascript/show_trait.js
index 569046d3..77ef1720 100644
--- a/wqflask/wqflask/static/new/javascript/show_trait.js
+++ b/wqflask/wqflask/static/new/javascript/show_trait.js
@@ -747,7 +747,11 @@ filter_by_value = function() {
if (filter_column == "value" || filter_column == "stderr"){
var this_col_value = filter_val_nodes[i].childNodes[0].value;
} else {
- var this_col_value = filter_val_nodes[i].childNodes[0].data;
+ if (filter_val_nodes[i].childNodes[0] !== undefined){
+ var this_col_value = filter_val_nodes[i].childNodes[0].data;
+ } else {
+ continue
+ }
}
let this_val_node = val_nodes[i].childNodes[0];
@@ -1700,4 +1704,4 @@ $('#normalize').click(edit_data_change);
Number.prototype.countDecimals = function () {
if(Math.floor(this.valueOf()) === this.valueOf()) return 0;
return this.toString().split(".")[1].length || 0;
-} \ No newline at end of file
+}