From e2e78c906ffebc84b59f1f8b3aa921c3b6f3d872 Mon Sep 17 00:00:00 2001 From: zsloan Date: Tue, 11 Apr 2023 18:15:14 +0000 Subject: Fix bug where publication years had links even when there's no PMID This was just caused by the correlation code not directly being passed the PMID (and instead only being passed the link and the text), so the logic in the table code needed to be changed to check for the link instead of the PMID --- wqflask/wqflask/templates/correlation_page.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wqflask') diff --git a/wqflask/wqflask/templates/correlation_page.html b/wqflask/wqflask/templates/correlation_page.html index 29fdc5f1..a85ac19b 100644 --- a/wqflask/wqflask/templates/correlation_page.html +++ b/wqflask/wqflask/templates/correlation_page.html @@ -411,7 +411,7 @@ 'data': null, 'width': "80px", 'render': function(data) { - if (data.pubmed_id != "N/A"){ + if (data.pubmed_link != "N/A"){ return '' + data.pubmed_text + '' } else { return data.pubmed_text -- cgit v1.2.3