diff options
author | zsloan | 2022-10-30 17:07:25 +0000 |
---|---|---|
committer | zsloan | 2022-10-30 17:15:51 +0000 |
commit | 22a4da0b48006b7ca243c7f11e17a28f61142e5a (patch) | |
tree | 7188b721eb7d78c19eaee877bb2439daa9c4bd1f | |
parent | 50b10bd0c4161ff64c529eb2ae6909093586b0cf (diff) | |
download | genenetwork2-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.
-rw-r--r-- | wqflask/wqflask/templates/collections/view.html | 6 |
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" } |