From 025811e559a1e6b1f04cd45f4f69a53fa7bbb379 Mon Sep 17 00:00:00 2001 From: zsloan Date: Wed, 17 Mar 2021 21:04:37 +0000 Subject: Added a check for if there's a second value for case attributes, for situations where a case attribute also has a link --- wqflask/wqflask/static/new/javascript/initialize_show_trait_tables.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'wqflask') diff --git a/wqflask/wqflask/static/new/javascript/initialize_show_trait_tables.js b/wqflask/wqflask/static/new/javascript/initialize_show_trait_tables.js index 06e33878..05e4d547 100644 --- a/wqflask/wqflask/static/new/javascript/initialize_show_trait_tables.js +++ b/wqflask/wqflask/static/new/javascript/initialize_show_trait_tables.js @@ -104,7 +104,11 @@ build_columns = function() { attr_name = Object.keys(data.extra_attributes).sort()[meta.col - data.first_attr_col] if (attr_name != null && attr_name != undefined){ + if (Array.isArray(data.extra_attributes[attr_name])){ + return '' + data.extra_attributes[attr_name][0] + '' + } else { return data.extra_attributes[attr_name] + } } else { return "" } -- cgit v1.2.3