aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorzsloan2022-10-30 17:07:25 +0000
committerzsloan2022-10-30 17:15:51 +0000
commit22a4da0b48006b7ca243c7f11e17a28f61142e5a (patch)
tree7188b721eb7d78c19eaee877bb2439daa9c4bd1f /wqflask
parent50b10bd0c4161ff64c529eb2ae6909093586b0cf (diff)
downloadgenenetwork2-22a4da0b48006b7ca243c7f11e17a28f61142e5a.tar.gz
Address situations where Additive Effect is an empty string for view
collection page I think the Monad stuff Bonface/Arun are doing might address situations like this better.
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/templates/collections/view.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/wqflask/wqflask/templates/collections/view.html b/wqflask/wqflask/templates/collections/view.html
index a5f80958..f2008172 100644
--- a/wqflask/wqflask/templates/collections/view.html
+++ b/wqflask/wqflask/templates/collections/view.html
@@ -273,7 +273,11 @@
'orderSequence': [ "desc", "asc"],
'render': function(data) {
if (Object.hasOwn(data, 'additive')){
- return data.additive.toFixed(3)
+ if (data.additive != "") {
+ return data.additive.toFixed(3)
+ } else {
+ return "N/A"
+ }
} else {
return "N/A"
}