From e717829b2bb90123905d6e64215b636f1871c09e Mon Sep 17 00:00:00 2001 From: John Nduli Date: Thu, 4 Jul 2024 17:17:00 +0300 Subject: fix: datatables error when search returns empty result --- gn2/wqflask/templates/gsearch_gene.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'gn2/wqflask/templates') 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); + } }); -- cgit v1.2.3