aboutsummaryrefslogtreecommitdiff
path: root/gn2/wqflask/templates
diff options
context:
space:
mode:
authorJohn Nduli2024-07-04 17:17:00 +0300
committerAlexander_Kabui2024-08-28 15:02:45 +0300
commite717829b2bb90123905d6e64215b636f1871c09e (patch)
tree8091580ffbb00cc6bc4d0718e7f49d0648b8b707 /gn2/wqflask/templates
parent7f707aaca67e21b43d4c9f29a460effb5129c9a4 (diff)
downloadgenenetwork2-e717829b2bb90123905d6e64215b636f1871c09e.tar.gz
fix: datatables error when search returns empty result
Diffstat (limited to 'gn2/wqflask/templates')
-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);
+ }
});