From 62c582ee1797c1a7879d5fc353c9b59d65b2ab92 Mon Sep 17 00:00:00 2001 From: Patrick McDonagh Date: Wed, 15 Feb 2017 15:51:59 -0600 Subject: [PATCH] Protects against faults for empty arrays on dashboard --- www/pocwww/pocwww/templates/dashboard.jinja2 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/www/pocwww/pocwww/templates/dashboard.jinja2 b/www/pocwww/pocwww/templates/dashboard.jinja2 index b49b753..a0c2dcc 100644 --- a/www/pocwww/pocwww/templates/dashboard.jinja2 +++ b/www/pocwww/pocwww/templates/dashboard.jinja2 @@ -21,6 +21,7 @@ + {% if tag_values.length > 0} {% for t in tag_values %} {{t._id}} @@ -40,6 +41,7 @@ {{t.total | round(3)}} --> {% endfor %} + {% endif %} @@ -47,9 +49,11 @@

Latest Card

+ {% if latest_card %}

{{latest_card.timestamp | datetime('long')}}

+ {% endif %}