aboutsummaryrefslogtreecommitdiff
path: root/gn2/wqflask
diff options
context:
space:
mode:
authorMunyoki Kilyungi2024-01-10 16:37:21 +0300
committerMunyoki Kilyungi2024-01-10 16:37:21 +0300
commit4aa492077538aed26c8a24b4451cf56a8a26bc28 (patch)
treef71e355b1e112550e04129f72f2ef83e846ee540 /gn2/wqflask
parent29aaaee759bbf8af68b73aa307e2a15330fa431a (diff)
downloadgenenetwork2-4aa492077538aed26c8a24b4451cf56a8a26bc28.tar.gz
Check whether the metadata.dataset group first exists.
* gn2/wqflask/templates/genotype.html: Add metadata.dataset check in and clause. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Diffstat (limited to 'gn2/wqflask')
-rw-r--r--gn2/wqflask/templates/genotype.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/gn2/wqflask/templates/genotype.html b/gn2/wqflask/templates/genotype.html
index bce3a808..7ed1ab70 100644
--- a/gn2/wqflask/templates/genotype.html
+++ b/gn2/wqflask/templates/genotype.html
@@ -25,7 +25,7 @@
<div class="container">
<table class="table">
- {% if metadata.dataset.group and metadata.species %}
+ {% if metadata.dataset and metadata.dataset.group and metadata.species %}
<tr>
<td><b>Group</b></td>
<td>{{ metadata.dataset.group }}: {{ metadata.species.speciesName }}</td>