diff options
author | John Nduli | 2024-07-04 17:17:00 +0300 |
---|---|---|
committer | BonfaceKilz | 2024-07-05 14:39:17 +0300 |
commit | 187e87dfde67aa82cf59d91d6657f1fd48724982 (patch) | |
tree | 21c71c02b2eb3e3a47090d1d5cba2db1dd8f5ba7 /gn2 | |
parent | bf85765831bb765aa7e6a66bbe2127575e985db9 (diff) | |
download | genenetwork2-187e87dfde67aa82cf59d91d6657f1fd48724982.tar.gz |
fix: datatables error when search returns empty result
Diffstat (limited to 'gn2')
-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); + } }); |