aboutsummaryrefslogtreecommitdiff
path: root/gn2/wqflask/templates/gsearch_gene.html
diff options
context:
space:
mode:
Diffstat (limited to 'gn2/wqflask/templates/gsearch_gene.html')
-rw-r--r--gn2/wqflask/templates/gsearch_gene.html8
1 files changed, 6 insertions, 2 deletions
diff --git a/gn2/wqflask/templates/gsearch_gene.html b/gn2/wqflask/templates/gsearch_gene.html
index 50b48401..3432662d 100644
--- a/gn2/wqflask/templates/gsearch_gene.html
+++ b/gn2/wqflask/templates/gsearch_gene.html
@@ -258,8 +258,12 @@
"scroller": true
{% endif %}
}
-
- create_table(tableId, traitsJson, columnDefs, tableSettings);
+
+ if (traitsJson.length > 0) {
+ create_table(tableId, traitsJson, columnDefs, tableSettings);
+ } else {
+ $("#" + tableId +" td").replaceWith("<td>No data</td>")
+ }
});