From 22a4da0b48006b7ca243c7f11e17a28f61142e5a Mon Sep 17 00:00:00 2001 From: zsloan Date: Sun, 30 Oct 2022 17:07:25 +0000 Subject: 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. --- wqflask/wqflask/templates/collections/view.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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" } -- cgit v1.2.3