From a5f6f1e7a892b16922eb2467950fa5145894c759 Mon Sep 17 00:00:00 2001 From: zsloan Date: Sun, 9 Jun 2019 20:09:15 -0500 Subject: Fixed javascript error with phenotype global search --- wqflask/wqflask/templates/gsearch_pheno.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'wqflask') diff --git a/wqflask/wqflask/templates/gsearch_pheno.html b/wqflask/wqflask/templates/gsearch_pheno.html index 7dc22a88..7e2e6997 100644 --- a/wqflask/wqflask/templates/gsearch_pheno.html +++ b/wqflask/wqflask/templates/gsearch_pheno.html @@ -134,7 +134,11 @@ 'width': "25%", 'data': null, 'render': function(data, type, row, meta) { - return decodeURIComponent(escape(data.description)) + try { + return decodeURIComponent(escape(data.description)) + } except { + return escape(data.description) + } } }, { -- cgit v1.2.3