aboutsummaryrefslogtreecommitdiff
path: root/gn2
diff options
context:
space:
mode:
authorJohn Nduli2024-07-04 17:17:00 +0300
committerBonfaceKilz2024-07-05 14:39:17 +0300
commit187e87dfde67aa82cf59d91d6657f1fd48724982 (patch)
tree21c71c02b2eb3e3a47090d1d5cba2db1dd8f5ba7 /gn2
parentbf85765831bb765aa7e6a66bbe2127575e985db9 (diff)
downloadgenenetwork2-187e87dfde67aa82cf59d91d6657f1fd48724982.tar.gz
fix: datatables error when search returns empty result
Diffstat (limited to 'gn2')
-rw-r--r--gn2/wqflask/templates/gsearch_gene.html6
1 files changed, 4 insertions, 2 deletions
diff --git a/gn2/wqflask/templates/gsearch_gene.html b/gn2/wqflask/templates/gsearch_gene.html
index 50b48401..ffab9b8c 100644
--- a/gn2/wqflask/templates/gsearch_gene.html
+++ b/gn2/wqflask/templates/gsearch_gene.html
@@ -258,8 +258,10 @@
"scroller": true
{% endif %}
}
-
- create_table(tableId, traitsJson, columnDefs, tableSettings);
+
+ if traitsJson.length > 0 {
+ create_table(tableId, traitsJson, columnDefs, tableSettings);
+ }
});