diff options
author | John Nduli | 2024-07-04 17:17:00 +0300 |
---|---|---|
committer | Alexander_Kabui | 2024-08-28 15:02:45 +0300 |
commit | e717829b2bb90123905d6e64215b636f1871c09e (patch) | |
tree | 8091580ffbb00cc6bc4d0718e7f49d0648b8b707 /gn2/wqflask/templates | |
parent | 7f707aaca67e21b43d4c9f29a460effb5129c9a4 (diff) | |
download | genenetwork2-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.html | 6 |
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); + } }); |